有个问题问各位大侠,关于连接access的问题
youzi 2001-12-22 05:13:16 本人连接数据库的代码如下:
set dbconnection=Server.CREATEOBJECT("ADODB.CONNECTION")
DBPath = Server.MapPath("lib.mdb")
dbconnection.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "用户信息", dbconnection, adOpenDynamic, 3
strSql = "Select 用户名 from 用户信息 where 用户名 = '" & Request("username") &"'"
set rs = dbconnection.Execute (StrSql)
但是登录页面的时候总是出现这个问题
Microsoft OLE DB Provider for ODBC Drivers 错误 '80004005'
[Microsoft][ODBC Microsoft Access Driver]常见错误 不能打开注册表关键字 'Temporary (volatile) Jet DSN for process 0x408 Thread 0x784 DBC 0xcc2fec Jet'。
/message_board/register.asp,行44 (44行指的是dbconnection.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath)
请各位大侠给与解决,谢谢