I try 2 type of connection, but both failed. below describe the code and error.
1) set DBConn=server.CreateObject ("ADODB.Connection"
DBConn.open "dbtest"
set record=server.CreateObject ("ADODB.Recordset"
give me this error
ADODB.Connection error '800a0e7a'
ADO could not find the specified provider.
/test.asp, line 11
even i use below code also return the above error.
2) Dim DBConn
set DBConn=server.CreateObject ("ADODB.Connection"
DBConn.Open ("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" + "C:\Windows\Desktop\db.mdb"
set record=server.CreateObject ("ADODB.Recordset"
if i use the first code, how should i set the ODBC Data source setting?
I'm using local installed Microsoft Access 2000 with ASP running on PWS. which setting i should chose, System DSN or File DSN.
If i were to chose File DSN or System DSN, what is the step in setting up the connection to my database?
My Access database is located in c:\windows\desktop\db.mdb. Please help.
Thanks
vincent
1) set DBConn=server.CreateObject ("ADODB.Connection"
DBConn.open "dbtest"
set record=server.CreateObject ("ADODB.Recordset"
give me this error
ADODB.Connection error '800a0e7a'
ADO could not find the specified provider.
/test.asp, line 11
even i use below code also return the above error.
2) Dim DBConn
set DBConn=server.CreateObject ("ADODB.Connection"
DBConn.Open ("PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" + "C:\Windows\Desktop\db.mdb"
set record=server.CreateObject ("ADODB.Recordset"
if i use the first code, how should i set the ODBC Data source setting?
I'm using local installed Microsoft Access 2000 with ASP running on PWS. which setting i should chose, System DSN or File DSN.
If i were to chose File DSN or System DSN, what is the step in setting up the connection to my database?
My Access database is located in c:\windows\desktop\db.mdb. Please help.
Thanks
vincent