数据库连接时的问题!帮帮忙阿!up有分!急!!!!!!

我的连接字符串是这样的:
Application("strConnection")="Driver={Microsoft Access Driver (*.mdb)};DBQ="&Server.Mappath("database/database.mdb")

连接时出现:
Microsoft OLE DB Provider for ODBC Drivers 错误 '80004005'

[Microsoft][ODBC Microsoft Access Driver]常见错误 不能打开注册表关键字 'Temporary (volatile) Jet DSN for process 0x4d4 Thread 0x630 DBC 0x1339f024 Jet'。

/area/common/common.asa,行42

请问这是什么原因阿?怎么解决?
---------------------------------------------------------------

你的数据库在使用中,或是你要打开的某个表没有主键,把其它相关代码贴出来看看。
---------------------------------------------------------------

你上面的程序没有错,是你的数据库的问题,

---------------------------------------------------------------

什么意思啊,现在好了?
---------------------------------------------------------------

用OLEDB提供者吧
---------------------------------------------------------------

可能是版本问题
---------------------------------------------------------------

换种连接方式试试
Dim Conn
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="& _
Server.MapPath("database/database.mdb")
---------------------------------------------------------------

主要是access比较弱
---------------------------------------------------------------

我原来也老实出现问题,后来用sql了
---------------------------------------------------------------

oledb
---------------------------------------------------------------

up
---------------------------------------------------------------

推荐使用oledb连接方式

Published At
Categories with Web编程
comments powered by Disqus