connecting to MS Access dB on network share

I am trying to connect to a MS Access dB on a network share using the
following syntax but it doesn't work:

strConnect = "Provider=Microsoft.Jet.OLEDB.4.0; Data
Source=\\Calsj1\PMAPPS\pmdata.mdb"

If I move the dB to a location on my IIS it works fine and I can access
the dB.

I am running IIS 6.0 on Win2k3 server.

What am I doing wrong??

THanks
mwagoner [ Di, 03 Oktober 2006 19:10 ] [ ID #1488692 ]

Re: connecting to MS Access dB on network share

<mwagoner [at] caldrywall.com> wrote in message
news:1159895447.356498.185910 [at] c28g2000cwb.googlegroups.com.. .
> I am trying to connect to a MS Access dB on a network share using the
> following syntax but it doesn't work:
>
> strConnect = "Provider=Microsoft.Jet.OLEDB.4.0; Data
> Source=\\Calsj1\PMAPPS\pmdata.mdb"
>
> If I move the dB to a location on my IIS it works fine and I can access
> the dB.
>
> I am running IIS 6.0 on Win2k3 server.
>
> What am I doing wrong??
>
> THanks
>

Server.MapPath()
McKirahan [ Di, 03 Oktober 2006 19:28 ] [ ID #1488693 ]

Re: connecting to MS Access dB on network share

McKirahan wrote:
> <mwagoner [at] caldrywall.com> wrote in message
> news:1159895447.356498.185910 [at] c28g2000cwb.googlegroups.com.. .
> > I am trying to connect to a MS Access dB on a network share using the
> > following syntax but it doesn't work:
> >
> > strConnect = "Provider=Microsoft.Jet.OLEDB.4.0; Data
> > Source=\\Calsj1\PMAPPS\pmdata.mdb"
> >
> > If I move the dB to a location on my IIS it works fine and I can access
> > the dB.
> >
> > I am running IIS 6.0 on Win2k3 server.
> >
> > What am I doing wrong??
> >
> > THanks
> >

I tried this:

strConnect = "PROVIDER=Microsoft.Jet.OLEDB.4.0; DATA SOURCE=
"Server.MapPath("\\calsj1\pmapps\pmdata.mdb")

and still didn't work? I am getting an Internal 500 error...

?????

>
> Server.MapPath()
mwagoner [ Di, 03 Oktober 2006 20:01 ] [ ID #1488695 ]

Re: connecting to MS Access dB on network share

mwagoner [at] caldrywall.com wrote:
> I am trying to connect to a MS Access dB on a network share using the
> following syntax but it doesn't work:
>
> strConnect = "Provider=Microsoft.Jet.OLEDB.4.0; Data
> Source=\\Calsj1\PMAPPS\pmdata.mdb"
>
> If I move the dB to a location on my IIS it works fine and I can
> access the dB.
>
> I am running IIS 6.0 on Win2k3 server.
>
> What am I doing wrong??
>
Does this help?
http://www.aspfaq.com/show.asp?id=2168

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
reb01501 [ Di, 03 Oktober 2006 20:13 ] [ ID #1488696 ]

Re: connecting to MS Access dB on network share

Hi,
Try to uncheck

"Internet Explorer / Tools / Internet Options / Advanced / Browsing ->
Show friendly HTTP Error Messages" option.

Then get the error source correctly.

I think your IUSR_<Machine_Name> (Internet Guest Account) does not have
required access right to read from network share. If it's a must to
share mdb on the network, move it to your server then share it on that.

I hope these help to u. Bye.

*** Sent via Developersdex http://www.developersdex.com ***
Support [ Mi, 04 Oktober 2006 22:18 ] [ ID #1488697 ]
Webserver » microsoft.public.inetserver.asp.db » connecting to MS Access dB on network share

Vorheriges Thema: Simple update date question
Nächstes Thema: Object doesn't support this property or method: 'EOF'