数据库连接问题。盼高手来解答,出现如下问题:

ldw701 2004-03-10 12:44:14
ADODB.Recordset 错误 '800a0bb9'

参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。

/ceshi.asp,行7


<%
strconn="driver={sql server};server=localhost;uid=sa;pwd=;database=northwind"
set conn=server.createobject("adodb.connection")
conn.open strconn
set rs=server.createobject("adodb.recordset")
sql="select * from customers"
rs.open sql,db,1,1
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>无标题文档</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body>

<table width="978" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<% while not rs.eof

%>

<td height="27" valign="top"><%=rs.fields(i).name%></td>
<%
wend
%>
</tr>
<tr>
<td height="69"> </td>
</tr>
</table>
</body>
</html>
...全文
59 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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