读书人

求解决:ADODB.Recordset amp;#x27;800a0

发布时间: 2013-02-27 10:48:11 作者: rapoo

求解决:ADODB.Recordset '800a0bb9' 参数类型不正确,或不在可以接受的范围之内,或与其他
[code=htm]
<%
set rs=server.createobject("adodb.recordset")
sql="select * from table1 where starttime < now() and endtime > now() and id="&createid
response.Write sql
rs.open sql,conn,1,1
%>
[/code]
错误提示

select * from table1 where starttime < now() and endtime > now() and id=1
ADODB.Recordset '800a0bb9'

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

\selview.asp, line 18(代码处组后一行"rs.open sql,conn,1,1")
conn存在,并且同样的这句话在其他页面使用也无错误。。。
[解决办法]
你看下数据库连接文件包含进来没啊
[解决办法]
数据库连接文件没有包含。

读书人网 >ASP

热点推荐