|
-
Jun 16th, 2006, 12:18 PM
#1
Thread Starter
Addicted Member
[RESOLVED] access connection error
ok here is my connection
VB Code:
<%
Dim objConn
set objConn = server.createobject("ADODB.connection")
objConn.Open "driver={microsoft access driver (*.mdb)};" & "dbq=../../products.mdb"
%>
here is the error i get
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x2dbc Thread 0x2300 DBC 0xe4b1cdc Jet'.
/admin/db.inc, line 4
im not sure whey its doing this any help appreciated
-
Jun 16th, 2006, 01:58 PM
#2
PowerPoster
Re: access connection error
Not sure where your Database Is located but it would be something like this ..
You can do this to test your path locations from the asp page ..
Response.Write Server.Mappath("./../../")
Response.End
VB Code:
<%
Dim objConn
set objConn = server.createobject("ADODB.connection")
objConn.Open "driver={microsoft access driver (*.mdb)}; dbq=" & Server.Mappath("./../../products.mdb")
%>
Or ..
VB Code:
<%
Dim objConn
set objConn = server.createobject("ADODB.connection")
objConn.Open "driver={microsoft access driver (*.mdb)}; dbq=D:\mywebs\thisweb\database\products.mdb"
%>
-
Jun 16th, 2006, 02:25 PM
#3
Thread Starter
Addicted Member
Re: access connection error
-
Jun 16th, 2006, 02:39 PM
#4
Thread Starter
Addicted Member
Re: access connection error
sweet that worked i was able to get the correct path, thanks much, that info is good to know for testing too.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|