加入recordset后就不能预览网页了,预览网页上如正文中的错误,请帮忙

titi690 2003-10-17 03:22:17
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Microsoft Jet 数据库引擎打不开文件'(未知的)'。 它已经被别的用户以独占方式打开,或没有查看数据的权限。
/reg_user/TMPmup5vmv6k5.asp, 第 5 行
...全文
24 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
yzxlyd 2003-10-17
  • 打赏
  • 举报
回复
那你把你的代码放出来,这个好像属于ASP的吧。
它提示你错误在第5行,你看看。
titi690 2003-10-17
  • 打赏
  • 举报
回复
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/userinfo.asp" -->
<%
set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_userinfo_STRING
Recordset1.Source = "SELECT * FROM userinfo"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open()
Recordset1_numRows = 0
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="75%" border="1">
<tr>
<td>id</td>
<td>name</td>
<td>ADDRESS</td>
<td>reg data</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
<%
Recordset1.Close()
%>

1,451

社区成员

发帖
与我相关
我的任务
社区描述
多媒体/设计/Flash/Silverlight 开发 图象工具使用
社区管理员
  • 图象工具使用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧