Ask a Question related to ASP Database, Design and Development.
-
Laura #1
problems with linked access tables in ASP
Hello,
I've seen this posting many times, but there are no responses to it...
I hope it's not too difficult to fix.
I have two databases, one primary one, and another one which contains
a table that I need to use. So, I linked the table I need in the
secondary db to the primary database. Now, when I try to create a
recordset object to it in ASP, I get the following error:
Microsoft][ODBC Microsoft Access Driver] 'V:\DB\Conf.mdb' is not a
valid path. Make sure that the path name is spelled correctly and that
you are connected to the server on which the file resides.
Conf.mdb is the secondary database that contains the table originally.
The connection that I have is to the primary database.
I really don't know what's going on, since all the other tables in the
db (that are not linked from somewhere else) work perfectly and I can
read information form them through ASP.
Thanks for any help,
Laura
Laura Guest
-
Problem: Cannot query linked Access tables in CFMX 6.1
I?m using CFMX 6.1 on a Windows Server 2003. I have an Access DB with some tables linked to a SQL Server 2000 DB running on another machine. When I... -
LInked Tables...
I am getting the wrong id, when I create the link to the details page from the code below. What I get is the Artist #id#, I want the Album #id# ... -
Connecting to linked SQL tables through access
Hello, I have searched the web and can't find a solution, but this must (maybe) be common. I am creating an asp page that connects to an access... -
Linked 'tables' (access) local - to -remote?
Is it actually possible for a local access 2000 database to link to a remote database online via linked tables... I know www.aspfaq.com has... -
Access query of linked tables returns EOF
It works fine for me. I created a database called db14.mdb containing one local and two linked tables (each from a different database). I then... -
Ken Schaefer #2
Re: problems with linked access tables in ASP
Drive letters are mapped for the logged on user only. So, just because you
logon and map drive v: doesn't mean that it is mapped for *other* users,
including IUSR_<machinename>
Suggest you use UNC naming instead: \\server\share\conf.mdb
Cheers
Ken
"Laura" <salamahl@aecl.ca> wrote in message
news:3b666b7a.0308181117.2f87d097@posting.google.c om...
: Hello,
:
: I've seen this posting many times, but there are no responses to it...
: I hope it's not too difficult to fix.
:
: I have two databases, one primary one, and another one which contains
: a table that I need to use. So, I linked the table I need in the
: secondary db to the primary database. Now, when I try to create a
: recordset object to it in ASP, I get the following error:
:
: Microsoft][ODBC Microsoft Access Driver] 'V:\DB\Conf.mdb' is not a
: valid path. Make sure that the path name is spelled correctly and that
: you are connected to the server on which the file resides.
:
:
: Conf.mdb is the secondary database that contains the table originally.
: The connection that I have is to the primary database.
:
: I really don't know what's going on, since all the other tables in the
: db (that are not linked from somewhere else) work perfectly and I can
: read information form them through ASP.
:
: Thanks for any help,
: Laura
Ken Schaefer Guest
-
Laura #3
Re: problems with linked access tables in ASP
Ok, I tried getting that to work, but the problem now lies with access.
I didn't specifically hard code in the path to the secondary database
(V:/.../Conf.mdb). There is a table in that database that is linked to
another one (\\server\..\mainDatabase.mdb). So, the problem lies with I
link table in Conf.mdb to mainDatabase.mdb, since access uses the "V:/"
path.
So, any ideas how I can get around that? I tried typing in the UNC path,
but it just told me that the database couldn't be found, invalid path.
Thanks so much!
Laura
"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in message news:<esKdVafZDHA.736@TK2MSFTNGP09.phx.gbl>...> Drive letters are mapped for the logged on user only. So, just because you
> logon and map drive v: doesn't mean that it is mapped for *other* users,
> including IUSR_<machinename>
>
> Suggest you use UNC naming instead: \\server\share\conf.mdb
>
> Cheers
> Ken
>
> "Laura" <salamahl@aecl.ca> wrote in message
> news:3b666b7a.0308181117.2f87d097@posting.google.c om...
> : Hello,
> :
> : I've seen this posting many times, but there are no responses to it...
> : I hope it's not too difficult to fix.
> :
> : I have two databases, one primary one, and another one which contains
> : a table that I need to use. So, I linked the table I need in the
> : secondary db to the primary database. Now, when I try to create a
> : recordset object to it in ASP, I get the following error:
> :
> : Microsoft][ODBC Microsoft Access Driver] 'V:\DB\Conf.mdb' is not a
> : valid path. Make sure that the path name is spelled correctly and that
> : you are connected to the server on which the file resides.
> :
> :
> : Conf.mdb is the secondary database that contains the table originally.
> : The connection that I have is to the primary database.
> :
> : I really don't know what's going on, since all the other tables in the
> : db (that are not linked from somewhere else) work perfectly and I can
> : read information form them through ASP.
> :
> : Thanks for any help,
> : LauraLaura Guest
-
JOhn Beschler #4
Re: problems with linked access tables in ASP
I just tested what I believe is your scenerio and it
worked perfectly.
DB1: C:\Inetpub\wwwroot\practice.mdb
DB2: C:\Documents and settings\user\my documents\coe.mdb
DB1 contains a link to table COE in DB2.
Here's the ASP code:
strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\Inetpub\wwwroot\practice.mdb;Persist Security
Info=False"
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open strConn
Set objRS = Server.CreateObject("ADODB.Recordset")
objRS.Open "COEs", objConn, 3, 3
Response.Write "<table cellpadding=2 cellspacing=0
border=1>" & vbcrlf
Response.Write " <tr>" & vbcrlf
For Each Field In objRS.Fields
Response.Write " <th>" & Field.Name & "</th>" &
vbcrlf
Next
Response.Write " </tr>" & vbcrlf
Do While Not objRS.Eof
Response.Write " <tr>" & vbcrlf
For Each Field In objRS.Fields
Response.Write " <td>" & Field.Value & "</td>" &
vbcrlf
Next
Response.Write " </tr>" & vbcrlf
objRS.MoveNext
Loop
Response.Write "</table>" & vbcrlf
strAction = ""
The output is the contents of the COE table as it should
be.
Even tried it with an access database residing on a
completely different computer. Still works.
I suspect your error is in connecting to the first DB not
the linked DB.
Try reading the contents of a table in the main DB and see
if you are able to do that. Once you get that working,
accessing the linked table should be nothing more than
changing the table name in the SQL statement.
HTH,
John
lies with access.>-----Original Message-----
>Ok, I tried getting that to work, but the problem nowsecondary database>
>I didn't specifically hard code in the path to theis linked to>(V:/.../Conf.mdb). There is a table in that database thatproblem lies with I>another one (\\server\..\mainDatabase.mdb). So, theuses the "V:/">link table in Conf.mdb to mainDatabase.mdb, since accessin the UNC path,>path.
>
>So, any ideas how I can get around that? I tried typinginvalid path.>but it just told me that the database couldn't be found,message news:<esKdVafZDHA.736@TK2MSFTNGP09.phx.gbl>...>
>Thanks so much!
>Laura
>
>
>"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote inSo, just because you>> Drive letters are mapped for the logged on user only.for *other* users,>> logon and map drive v: doesn't mean that it is mapped\\server\share\conf.mdb>> including IUSR_<machinename>
>>
>> Suggest you use UNC naming instead:responses to it...>>
>> Cheers
>> Ken
>>
>> "Laura" <salamahl@aecl.ca> wrote in message
>> news:3b666b7a.0308181117.2f87d097@posting.google.c om...
>> : Hello,
>> :
>> : I've seen this posting many times, but there are noone which contains>> : I hope it's not too difficult to fix.
>> :
>> : I have two databases, one primary one, and anotherneed in the>> : a table that I need to use. So, I linked the table Itry to create a>> : secondary db to the primary database. Now, when Ierror:>> : recordset object to it in ASP, I get the followingDriver] 'V:\DB\Conf.mdb' is not a>> :
>> : Microsoft][ODBC Microsoft Accesscorrectly and that>> : valid path. Make sure that the path name is spelledresides.>> : you are connected to the server on which the filetable originally.>> :
>> :
>> : Conf.mdb is the secondary database that contains thedatabase.>> : The connection that I have is to the primaryother tables in the>> :
>> : I really don't know what's going on, since all theperfectly and I can>> : db (that are not linked from somewhere else) work>.>> : read information form them through ASP.
>> :
>> : Thanks for any help,
>> : Laura
>JOhn Beschler Guest
-
Laura #5
Re: problems with linked access tables in ASP
hmmm... now I'm really confused. I tried starting from scratch, just
to see if my original connection isn't right, and nothing.
My original connection was slightly different (Sytem DSN) but it
worked with all the tables/queries that are native to the database,
just not the linked table. So, I basically copied and pasted your code
and it worked exactly the same way.
this is my error:
'V:\REVAMPED\DB\Conf.mdb' is not a valid path. Make sure that the path
name is spelled correctly and that you are connected to the server on
which the file resides.
I don't hard code this path in (v:/revamped...). In my connection, I
have the UNC path to the main database, and this is the secondary
database.
I'm not sure, but I think I need to somehow make MS Access link to the
database using the UNC path.
thanks so much in advance!
"JOhn Beschler" <giles@geewhiz.com> wrote in message news:<038201c36695$65ed5a00$a501280a@phx.gbl>...> I just tested what I believe is your scenerio and it
> worked perfectly.
>
> DB1: C:\Inetpub\wwwroot\practice.mdb
> DB2: C:\Documents and settings\user\my documents\coe.mdb
>
>
> DB1 contains a link to table COE in DB2.
>
> Here's the ASP code:
> strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data
> Source=C:\Inetpub\wwwroot\practice.mdb;Persist Security
> Info=False"
> Set objConn = Server.CreateObject("ADODB.Connection")
> objConn.Open strConn
>
> Set objRS = Server.CreateObject("ADODB.Recordset")
> objRS.Open "COEs", objConn, 3, 3
> Response.Write "<table cellpadding=2 cellspacing=0
> border=1>" & vbcrlf
> Response.Write " <tr>" & vbcrlf
> For Each Field In objRS.Fields
> Response.Write " <th>" & Field.Name & "</th>" &
> vbcrlf
> Next
> Response.Write " </tr>" & vbcrlf
> Do While Not objRS.Eof
> Response.Write " <tr>" & vbcrlf
> For Each Field In objRS.Fields
> Response.Write " <td>" & Field.Value & "</td>" &
> vbcrlf
> Next
> Response.Write " </tr>" & vbcrlf
> objRS.MoveNext
> Loop
> Response.Write "</table>" & vbcrlf
> strAction = ""
>
>
>
> The output is the contents of the COE table as it should
> be.
>
> Even tried it with an access database residing on a
> completely different computer. Still works.
>
> I suspect your error is in connecting to the first DB not
> the linked DB.
> Try reading the contents of a table in the main DB and see
> if you are able to do that. Once you get that working,
> accessing the linked table should be nothing more than
> changing the table name in the SQL statement.
>
> HTH,
> John
>
>
>
>> lies with access.> >-----Original Message-----
> >Ok, I tried getting that to work, but the problem now> secondary database> >
> >I didn't specifically hard code in the path to the> is linked to> >(V:/.../Conf.mdb). There is a table in that database that> problem lies with I> >another one (\\server\..\mainDatabase.mdb). So, the> uses the "V:/"> >link table in Conf.mdb to mainDatabase.mdb, since access> in the UNC path,> >path.
> >
> >So, any ideas how I can get around that? I tried typing> invalid path.> >but it just told me that the database couldn't be found,> message news:<esKdVafZDHA.736@TK2MSFTNGP09.phx.gbl>...> >
> >Thanks so much!
> >Laura
> >
> >
> >"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wrote in> So, just because you> >> Drive letters are mapped for the logged on user only.> for *other* users,> >> logon and map drive v: doesn't mean that it is mapped> \\server\share\conf.mdb> >> including IUSR_<machinename>
> >>
> >> Suggest you use UNC naming instead:> responses to it...> >>
> >> Cheers
> >> Ken
> >>
> >> "Laura" <salamahl@aecl.ca> wrote in message
> >> news:3b666b7a.0308181117.2f87d097@posting.google.c om...
> >> : Hello,
> >> :
> >> : I've seen this posting many times, but there are no> one which contains> >> : I hope it's not too difficult to fix.
> >> :
> >> : I have two databases, one primary one, and another> need in the> >> : a table that I need to use. So, I linked the table I> try to create a> >> : secondary db to the primary database. Now, when I> error:> >> : recordset object to it in ASP, I get the following> Driver] 'V:\DB\Conf.mdb' is not a> >> :
> >> : Microsoft][ODBC Microsoft Access> correctly and that> >> : valid path. Make sure that the path name is spelled> resides.> >> : you are connected to the server on which the file> table originally.> >> :
> >> :
> >> : Conf.mdb is the secondary database that contains the> database.> >> : The connection that I have is to the primary> other tables in the> >> :
> >> : I really don't know what's going on, since all the> perfectly and I can> >> : db (that are not linked from somewhere else) work> >.> >> : read information form them through ASP.
> >> :
> >> : Thanks for any help,
> >> : Laura
> >Laura Guest
-
John Beschler #6
Re: problems with linked access tables in ASP
Remember that your ASP pages do not run in the same
context as you. In otherwords, when you create the link to
the 2nd table in Access, you are probably logged in as
yourself; however, when you ASP page runs it is
authenticted as (usually) IWAM_computername. You need to
make sure that the IWAM_computername user has appropriate
permissions on the 2nd MDB file and that the drive
mappings are the same.
scratch, just>-----Original Message-----
>hmmm... now I'm really confused. I tried starting frombut it>to see if my original connection isn't right, and nothing.
>
>My original connection was slightly different (Sytem DSN)database,>worked with all the tables/queries that are native to thepasted your code>just not the linked table. So, I basically copied andthat the path>and it worked exactly the same way.
>
>this is my error:
>
>'V:\REVAMPED\DB\Conf.mdb' is not a valid path. Make surethe server on>name is spelled correctly and that you are connected toconnection, I>which the file resides.
>
>I don't hard code this path in (v:/revamped...). In mysecondary>have the UNC path to the main database, and this is theAccess link to the>database.
>
>I'm not sure, but I think I need to somehow make MSnews:<038201c36695$65ed5a00$a501280a@phx.gbl>...>database using the UNC path.
>
>thanks so much in advance!
>
>
>
>"JOhn Beschler" <giles@geewhiz.com> wrote in message& "</td>" &>> I just tested what I believe is your scenerio and it
>> worked perfectly.
>>
>> DB1: C:\Inetpub\wwwroot\practice.mdb
>> DB2: C:\Documents and settings\user\my documents\coe.mdb
>>
>>
>> DB1 contains a link to table COE in DB2.
>>
>> Here's the ASP code:
>> strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data
>> Source=C:\Inetpub\wwwroot\practice.mdb;Persist Security
>> Info=False"
>> Set objConn = Server.CreateObject("ADODB.Connection")
>> objConn.Open strConn
>>
>> Set objRS = Server.CreateObject("ADODB.Recordset")
>> objRS.Open "COEs", objConn, 3, 3
>> Response.Write "<table cellpadding=2 cellspacing=0
>> border=1>" & vbcrlf
>> Response.Write " <tr>" & vbcrlf
>> For Each Field In objRS.Fields
>> Response.Write " <th>" & Field.Name & "</th>" &
>> vbcrlf
>> Next
>> Response.Write " </tr>" & vbcrlf
>> Do While Not objRS.Eof
>> Response.Write " <tr>" & vbcrlf
>> For Each Field In objRS.Fields
>> Response.Write " <td>" & Field.Valueshould>> vbcrlf
>> Next
>> Response.Write " </tr>" & vbcrlf
>> objRS.MoveNext
>> Loop
>> Response.Write "</table>" & vbcrlf
>> strAction = ""
>>
>>
>>
>> The output is the contents of the COE table as itnot>> be.
>>
>> Even tried it with an access database residing on a
>> completely different computer. Still works.
>>
>> I suspect your error is in connecting to the first DBsee>> the linked DB.
>> Try reading the contents of a table in the main DB andthat>> if you are able to do that. Once you get that working,
>> accessing the linked table should be nothing more than
>> changing the table name in the SQL statement.
>>
>> HTH,
>> John
>>
>>
>>
>>>> lies with access.>> >-----Original Message-----
>> >Ok, I tried getting that to work, but the problem now>> secondary database>> >
>> >I didn't specifically hard code in the path to the>> >(V:/.../Conf.mdb). There is a table in that databaseaccess>> is linked to>> problem lies with I>> >another one (\\server\..\mainDatabase.mdb). So, the>> >link table in Conf.mdb to mainDatabase.mdb, sincetyping>> uses the "V:/">> >path.
>> >
>> >So, any ideas how I can get around that? I triedfound,>> in the UNC path,>> >but it just told me that the database couldn't bein>> invalid path.>> >
>> >Thanks so much!
>> >Laura
>> >
>> >
>> >"Ken Schaefer" <kenREMOVE@THISadOpenStatic.com> wroteonly.>> message news:<esKdVafZDHA.736@TK2MSFTNGP09.phx.gbl>...>> >> Drive letters are mapped for the logged on usermapped>> So, just because you>> >> logon and map drive v: doesn't mean that it isnews:3b666b7a.0308181117.2f87d097@posting.google.c om...>> for *other* users,>> \\server\share\conf.mdb>> >> including IUSR_<machinename>
>> >>
>> >> Suggest you use UNC naming instead:>> >>
>> >> Cheers
>> >> Ken
>> >>
>> >> "Laura" <salamahl@aecl.ca> wrote in message
>> >>no>> >> : Hello,
>> >> :
>> >> : I've seen this posting many times, but there aretable I>> responses to it...>> one which contains>> >> : I hope it's not too difficult to fix.
>> >> :
>> >> : I have two databases, one primary one, and another>> >> : a table that I need to use. So, I linked thespelled>> need in the>> try to create a>> >> : secondary db to the primary database. Now, when I>> error:>> >> : recordset object to it in ASP, I get the following>> Driver] 'V:\DB\Conf.mdb' is not a>> >> :
>> >> : Microsoft][ODBC Microsoft Access>> >> : valid path. Make sure that the path name isthe>> correctly and that>> resides.>> >> : you are connected to the server on which the file>> >> :
>> >> :
>> >> : Conf.mdb is the secondary database that contains>.>> table originally.>> database.>> >> : The connection that I have is to the primary>> other tables in the>> >> :
>> >> : I really don't know what's going on, since all the>> perfectly and I can>> >> : db (that are not linked from somewhere else) work>> >> : read information form them through ASP.
>> >> :
>> >> : Thanks for any help,
>> >> : Laura
>> >.
>> >
>John Beschler Guest
-
Laura #7
Re: problems with linked access tables in ASP
Ok, how do I change the IWAM_computername permissions? (what does IWAM
stand for, btw?)
I changed all the other permissions on both databases to be change/full
control, but the error still appears.
thanks, I think we're getting closer!
Laura
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Laura Guest



Reply With Quote

