I am using an asp to query against an Access Database file located in c:\ I created a System DSN to point to this Database file, which doesn't use security. I use the following lines in the asp..
Set RS = CreateObject("ADODB.Recordset"
Set Conn = CreateObject("ADODB.Connection"
Conn.ConnectionString ="DSN=MyDatabase;"
When I execute the ASP I get an error..
"Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Could not find file 'C:\WINNT\system32\database.mdb'"
It always wants to look in System32 for the database even though the DSN points to c:\database.MDB
I have also tried..... Conn.open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath(/../../"database.mdb" With no Luck.
Though if I copy the database from c:\ to c:\winnt\system32 everything works just fine. The problem is in the future this database will be located on a network share drive.
If you know whats causing it to look in the system32 directory and nowhere else please let me know.
Thanks,
JR
Set RS = CreateObject("ADODB.Recordset"
Set Conn = CreateObject("ADODB.Connection"
Conn.ConnectionString ="DSN=MyDatabase;"
When I execute the ASP I get an error..
"Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Could not find file 'C:\WINNT\system32\database.mdb'"
It always wants to look in System32 for the database even though the DSN points to c:\database.MDB
I have also tried..... Conn.open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath(/../../"database.mdb" With no Luck.
Though if I copy the database from c:\ to c:\winnt\system32 everything works just fine. The problem is in the future this database will be located on a network share drive.
If you know whats causing it to look in the system32 directory and nowhere else please let me know.
Thanks,
JR