Hi All,
I am having problems with my database connection. I have two computers, one running Win XP with MS Access 2002. The second computer is running Win 2000 with MS Access 2002.
My application works perfectly on my Win XP machine, but keeps giving me an error message on my Win 2000 machine. So I created a very simple ASP page to make a very simple database connection. But it still crashes on Win 2000. Does anyone know what might be causing my problem? Here is my test page:
--------------------------------------------------
<%
Dim adoCon
Set adoCon = Server.CreateObject("ADODB.Connection"
dbPath = "C:\safepassdb.mdb"
adoCon.ConnectionString="DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & dbPath & "; Password=simpson"
adoCon.Open
Dim rsStaffName
Set rsStaffName = Server.CreateObject("ADODB.Recordset"
rsStaffName.Open "SELECT * FROM tblStaff", adoCon
While NOT rsStaffName.EOF
response.write rsStaffName("staffFirstName"
& "<BR>"
rsStaffName.movenext
Wend
rsStaffName.Close
Set rsStaffName = Nothing
%>
--------------------------------------------------
The following error is occurring on line 12, which is the line:
adoCon.Open
Here is the error message:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x228 Thread 0x504 DBC 0x145c024 Jet'.
/safeweb/dbtest.asp, line 12
Why does this work on Win XP but not on Win 2000? It doesn't make any sense.
I also did a test ASP page that simply outputs the date to test IIS on the Win 2000 server, and that works fine, so I know that IIS is running properly at least.
Any help or hints would be greatly appreciated! Thank you!
I am having problems with my database connection. I have two computers, one running Win XP with MS Access 2002. The second computer is running Win 2000 with MS Access 2002.
My application works perfectly on my Win XP machine, but keeps giving me an error message on my Win 2000 machine. So I created a very simple ASP page to make a very simple database connection. But it still crashes on Win 2000. Does anyone know what might be causing my problem? Here is my test page:
--------------------------------------------------
<%
Dim adoCon
Set adoCon = Server.CreateObject("ADODB.Connection"
dbPath = "C:\safepassdb.mdb"
adoCon.ConnectionString="DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & dbPath & "; Password=simpson"
adoCon.Open
Dim rsStaffName
Set rsStaffName = Server.CreateObject("ADODB.Recordset"
rsStaffName.Open "SELECT * FROM tblStaff", adoCon
While NOT rsStaffName.EOF
response.write rsStaffName("staffFirstName"
rsStaffName.movenext
Wend
rsStaffName.Close
Set rsStaffName = Nothing
%>
--------------------------------------------------
The following error is occurring on line 12, which is the line:
adoCon.Open
Here is the error message:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x228 Thread 0x504 DBC 0x145c024 Jet'.
/safeweb/dbtest.asp, line 12
Why does this work on Win XP but not on Win 2000? It doesn't make any sense.
I also did a test ASP page that simply outputs the date to test IIS on the Win 2000 server, and that works fine, so I know that IIS is running properly at least.
Any help or hints would be greatly appreciated! Thank you!