Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem accessing Database

Status
Not open for further replies.

krappleby025

Programmer
Sep 6, 2001
347
NL
Hi all, can you help,

I am trying to access a database, from a website, that is situated on the same computer, but not on the website.

i am using an access database, accounting system, which is not allocated on the website, but i have the database on a non website HD.

the database path is f:/accounts/database/krapp2.mdb

the asp coding i am using is
<% Cons1.Open( &quot;DRIVER={Microsoft Access driver (*.mdb)}; DBQ=&quot; & server.MapPath(&quot;f:/accounts/database/krapp2.mdb&quot; ) )
%>

the error i am gettin is


Server.MapPath() error 'ASP 0172 : 80004005'

Invalid Path

/Cutomerlogin/default.asp, line 22

The Path parameter for the MapPath method must be a virtual path. A physical path was used.


any ideas on what code i should be using,

any ideas will be appreciated.
thanks
 
drop the server.MapPath, since you have the full physical path already:

<% Cons1.Open( &quot;DRIVER={Microsoft Access driver (*.mdb)}; DBQ=f:/accounts/database/krapp2.mdb&quot; )
%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top