傲斗凌天2.23最强英雄:ASP连接数据库时出错

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/05 11:04:53
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver]常见错误 不能打开注册表关键字 'Temporary (volatile) Jet DSN for process 0x8c8 Thread 0xa94 DBC 0x1110064 Jet'。
谁可以帮忙解决下,不胜感激

要么数据库连接出错,要么没这个字段

以下是微软提供的解决方案:
1. Start Registry Editor (Regedt32.exe).
2. Select the following key in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC
3. On the Security menu, click Permissions.
4. Type the required permissions for the account that is accessing the Web page.
5. Quit Registry Editor.
参考:给IIS_MachineName帐号的系统目录写权限:system/temp

查看 数据库连接文件 一般为conn.asp 里面的数据库路径是否正确

打开数据库查看有没有该数据表!

访问的内容包含数据库没有的“字段”

ASP连接Access数据库的连接方法:

<%
dim conn,mdbfile
mdbfile=server.mappath("数据库名称.mdb")
set conn=server.createobject("adodb.connection")
conn.open "driver={microsoft access driver (*.mdb)};uid=admin;pwd=数据库密码;dbq="&mdbfile
%>