数据库连接问题。盼高手来解答,出现如下问题:
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>