错误类型:ADODB.Recordset (0x800A0BB9)参数类型不正确....index.asp, 第 42 行

来源:百度知道 编辑:UC知道 时间:2024/05/16 08:50:25
错误类型:
ADODB.Recordset (0x800A0BB9)
参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。
index.asp, 第 42 行

dim pics1,texts1,links1,rs2
set rs2 = Server.CreateObject("adodb.Recordset")
sql="select top 5 keyno, title, flag, picflag, picflag2, picalign,content from miscell_info where miscellno order by sortnum"
rs2.Open sql,conn,0,1,1 //第 42
do while not rs2.eof

where miscellno 这句做什么呢?好像没有做什么判断
rs2.Open sql,conn,0,1,1多了个0,这样:rs2.Open sql,conn,1,1

http://zhidao.baidu.com/q?ct=17&lm=0&tn=ikaslist&pn=0&rn=10&word=5651