scd藤尺芳惠:对象名 'list_book' 无效。ASP 的网站SQL数据库,老出对象无效

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/28 04:25:21
对象名 'list_book' 无效。ASP 的网站SQL数据库,老出对象无效
'调用推荐图书列表
set rsgood=server.createobject("adodb.recordset")
sqlgood="select top 8 * from list_book where IsGood=1 order by id desc"
rsgood.open sqlgood,conn,1,1
if rsgood.eof and rsgood.bof then

response.write "暂无任何推荐列表"
%>

显然你所说的'list_book'对象是用户自己定义的对象

请将对象定义的代码也贴出来

错误描述信息不够完整,很难帮你解答

list_book 表或者试图或者查询不存在,这是一定的!
list_book 对象名无特殊字符,也不用加[]

看看数据库中有没有 list_book 这个表.如果有请检查SQL数据库连接字符串 是否连接到你要用的表 如果都正确 还不行的话 请试试 select top 8 * from [list_book] where IsGood=1 order by id desc

还专家哩。
鸟。
看看你数据库中有没有 list_book 这个表