数据源设置的一个错误
l4ye 2002-07-16 08:08:48 在csdn论坛中,我搜索了一下odbc,看了很多,但总有点不明白。我做了个test.asp页面,所有内容如下:
<html>
<head>
<title>输出注册信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<%
set conn=Server.CreateObject("ADODB.connection")
response.write server.mappath("access\school_info.mdb")
conn.open "driver={Microsoft Access Driver (*.mdb)};dbq=D:\Documents and Settings\administrator\My Documents\lcl\djks\access\school_info.mdb"
%>
</body>
</html>
但一运行,就出现这样的错误,如下:
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
/test.asp, 第 10 行
其中,school_info.mdb是我建立的access数据库。请各位看看,我的代码出错在什么地方。