lizhonggeng吧 关注:21贴子:2,459
  • 8回复贴,共1

对象名 'list_book' 无效。ASP 的网站SQL数据库,老出对象无效

只看楼主收藏回复

无法显示网页 
试图访问的网页出现问题,无法显示。 

--------------------------------------------------------------------------------

请尝试执行下列操作:

单击刷新按钮,或稍后重试。

打开 127.0.0.1 主页,然后查找与所需信息相关的链接。 
HTTP 错误 500.100 - 内部服务器错误 - ASP 错误
Internet 信息服务

--------------------------------------------------------------------------------

技术信息(用于支持人员)

错误类型:
Microsoft OLE DB Provider for SQL Server (0x80040E37)
对象名 'list_book' 无效。
/index.asp, 第 176 行


浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) 

网页:
GET /index.asp 

时间:
2006年2月6日, 11:06:09 


详细信息:
Microsoft 支持 
 



1楼2006-03-06 11:14回复
    把你的index.asp这个页面代码发上来我有空给你分析一下,必须看代


    IP属地:山东2楼2006-03-06 11:33
    回复
       </tr>
       </table></TD>
       </TR>
       </TBODY>
       </TABLE></TD>
       </TR>
       <TR> 
       <TD background=images/top-3-bg.gif height=1></TD>
       </TR>
       </TBODY>
      </TABLE>
      <TABLE width="778" height="25" border=0 align="center" cellPadding=0 cellSpacing=0 bgcolor="#009999">
       <TBODY>
       <TR class="t3"> 
       <TD height=25 align="center" valign="middle"><a href="index.htm"><font color="#FFFFFF">文章首页</font></a>  
       <a href="qhmh.asp"><font color="#FFFFFF">奇幻魔幻</font></a>  
       <a href="wxhx.asp"><font color="#FFFFFF">武侠仙侠</font></a>  
       <a href="class.asp"><font color="#FFFFFF">都市言情</font></a>  
       <a href="tlly.asp"><font color="#FFFFFF">推理灵异</font></a>  
       <a href="jsls.asp"><font color="#FFFFFF">军事历史</font></a>  
       <a href="qtxs.asp"><font color="#FFFFFF">游戏竞技</font></a>  
       <a href="khwy.asp"><font color="#FFFFFF"> 科幻文艺</font></a> 
        <a href="wlwx.asp"><font color="#FFFFFF">网络文学</font></a>  
       <a href="quan.asp"><font color="#FFFFFF">全文作品</font></a>  <a href="bbs" target="_blank"><font color="#FFFFFF">论坛</font></a> 
       </TD>
       </TR>
       </TBODY>
      </TABLE>
      <TABLE width="778" height="27" border=0 align=center cellPadding=0 cellSpacing=0>
       <TBODY>
       <TR> 
       <TD bgColor=#E3F2EE height=20><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
       <TBODY>
       <TR> 
       <TD width="6%"> </TD>
       <TD width="37%" 
       height=24 align="center" valign="middle" style="FONT-SIZE: 14px; LINE-HEIGHT: 22px"><script language="JavaScript" src="js/menu.js" type="text/JavaScript"></script></TD>
       <TD width="57%" align="center" valign="middle" style="FONT-SIZE: 14px; LINE-HEIGHT: 22px"><table width="95%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
       
      <form action="search.asp" method="get">
       <tr> 
       <td align="center" valign="middle">搜索小说>>类型: 
       <select size="1" name="key_type" class="checklist" font-size: 12px; background-color:white; border-width:1; border-color:black; border-style:solid;">
       <option value="none" selected>搜索类型</option>
       <option value="list_name">作品名称</option>
       <option value="list_user">作者名称</option>
       <option value="key">作品主角</option>
       <option value="date">收录时间</option>
       </select>
       关键字: 
       <input title="
      ┌—————————————————————┐
      │  技  巧: │
      ├—————————————————————┤
      │可以输入不完全的词语! │
      │按收录时间的搜索,请一定按照如下格式书写!│
      │全部都是用半角数字如“04-1-1” │
      │如果只搜索指定的年份只需书写“04-” │
      │如果只搜索指定的年份和月份只需书“04-8-” │
      │如果搜索指定的年份的月份只需书“-7-” │
      └—————————————————————┘" maxlength="25" name="key_keyword" size="11" class="checklist" style="background-color: #FFFFFF; border: 1 solid #000000"> 
       <input type="submit" value=" 搜 索 " name="submit" title="
       一定要先选择搜索类型,再开始搜索!
      按收录时间搜索一定要注意填写格式,半角数字
       “04-8-3”、“04-”、“04-8-”、“-7-”
       " class="checklist"> </td>
       </tr>
       </form>
       </table></TD>
       </TR>
      


      4楼2006-03-06 11:38
      回复
         </TBODY>
         </TABLE></TD>
         </TR>
         </TBODY>
        </TABLE>
        <table width="777" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
         <tr> 
         <td height="221"><table width="777" border="0" align="center" cellpadding="0" cellspacing="0">
         <tr> 
         <td width="795" height="221" align="center" valign="top"><table width="100%" height="3" border="0" cellpadding="0" cellspacing="0">
         <tr> 
         <td bgcolor="#e3ece3"><img src="images/space.gif" width="1" height="1"></td>
         </tr>
         </table>
         <TABLE width="100%" height="27" border=0 align=center cellPadding=0 cellSpacing=0>
         <TBODY>
         <TR> 
         <TD bgColor=#E3F2EE height=20><TABLE cellSpacing=0 cellPadding=0 width="95%" border=0>
         <TBODY>
         <TR> 
         <TD width="2%"> </TD>
         <TD width="98%" 
         height=24 align="center" valign="middle" style="FONT-SIZE: 14px; LINE-HEIGHT: 22px"><span class="style1"><a href="gbook.asp">总点排行榜TOP200</a></span> 
         <a href="new100.asp">最新加入100部小说</a> <a href="booklist.asp?info=booktj" class="style1">所有添加图书列表</a> 
         <a href="booklist.asp?info=booktuij" class="style1">所有推荐图书列表</a> 
         <a href="booklist.asp?info=bookweb" class="style1">所有首页推荐图书</a> 
         <a href="booklist.asp?info=bookdj" class="style1">热门点击图书查看</a> 
         <a href="booklist.asp?info=bookwebtj" class="style1">热门推荐图书查看</a></TD>
         </TR>
         </TBODY>
         </TABLE></TD>
         </TR>
         </TBODY>
         </TABLE>
         <table width="98%" height="10" border="0" cellpadding="0" cellspacing="0">
         <tr> 
         <td><img src="images/space.gif" width="1" height="1"></td>
         </tr>
         </table>
         <table width="98%" border="0" cellspacing="0" cellpadding="0">
         <tr> 
         <td> <%
        '调用推荐图书列表
        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 "暂无任何推荐列表"
        %> 
         <%else%> <%
        i=0
        do while not rsgood.eof
        %> <table width=95 height=104 border=0 align=left cellpadding=0 cellspacing=0>
         <tr> 
         <td align=center><p><A href=book.asp?id=<%=rsgood("id")%>><IMG src=<%=rsgood("pic")%> width=77 height=111 border=0 class=pic1></A><br><a href=book.asp?id=<%=rsgood("id")%>><font color=red> 
         <%=rsgood("list_name")%></font></a><br>作者:<a href=search.asp?word=<%=rsgood("list_user")%>&xz=zuozhe><%=rsgood("list_user")%></a></p></td>
         </tr>
         </table>
         <%
         rsgood.movenext
        loop
        rsgood.close
        set rsgood=nothing
        %> <%end if%> </td>
         </tr>
         </table>
         <table width="98%" height="10" border="0" cellpadding="0" cellspacing="0">
         <tr> 
         <td><img src="images/space.gif" width="1" height="1"></td>
         </tr>
         </table></td>
         </tr>
         </table></td>
         </tr>
        </table>
        <table width="777" border="0" align="center" cellpadding="0" cellspacing="2" bgcolor="#E3F2EE">
         <tr align="center" bgcolor="#0099CC"> 
         <td width="190" height="29" bgcolor="#0099CC"><div align="center"><a href="qhmh.asp"><font color="#FFFFFF">奇幻魔幻作品推荐</font></a></div></td>
         <td width="190"><a href="wxhx.asp"><font color="#FFFFFF">武侠仙侠作品推荐</font></a></td>
        


        5楼2006-03-06 11:38
        回复
           </tr>
          </table>
          <table width="777" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
           <tr>
           <td align="center" valign="middle">
           <iframe marginwidth=0 marginheight=0 frameborder=0 bordercolor='#000000' scrolling=no src='http://adsence.sogou.com/index.html?pid=yj768&ww=145&dc=1&dir=0&num=6&color=1&charset=gb' width=98% height=80 vspace=-19></iframe> </td>
           </tr>
          </table>
          <table width="777" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
           <tr>
           <td width="193" valign="top"> 
           <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="009999">
           <tr> 
           <td><img src="images/space.gif" width="1" height="1"></td>
           </tr>
           </table>
           <TABLE 
           width=95% height=113 border=5 align="center" cellPadding=0 cellSpacing=0 borderColor=#ffffff>
           <TBODY>
           <TR>
           <TD width="100%"><DIV align=center>
           <table height=100 cellspacing=0 cellpadding=0 width="100%" 
           border=0>
           <tbody>
           <tr>
           <td height=26 align="center" bordercolor=#cfe1c4 bgcolor=99CCCC>总点击排行榜</td>
           </tr>
           <tr>
           <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
           <%
          '点击排行开始
          set rstj=server.createobject("adodb.recordset")
          sqltj="select top 12 * from list_book order by list_hit desc"
          rstj.open sqltj,conn,1,1
          if rstj.eof and rstj.bof then
          %>
           <tr>
           <td align="center">暂无任何排行</td>
           </tr>
           <%else%>
           <%do while not rstj.eof%>
           <tr align="center">
           <td height="25"><a href="book.asp?id=<%=rstj("id")%>"><%=rstj("list_name")%></a>(<%=rstj("list_hit")%>)</td>
           </tr>
           <%rstj.movenext
          loop
          rstj.close
          set rstj=nothing
          '点击排行结束
          %>
           <%end if%>
           </table></td>
           </tr>
           </tbody>
           </table>
           </DIV></TD>
           </TR>
           </TBODY>
           </TABLE>
           <BR>
           <TABLE 
           width=95% height=113 border=5 align="center" cellPadding=0 cellSpacing=0 borderColor=#ffffff>
           <TBODY>
           <TR>
           <TD><DIV align=center>
           <table height=100 cellspacing=0 cellpadding=0 width="100%" 
           border=0>
           <tbody>
           <tr>
           <td height=26 align="center" bordercolor=#cfe1c4 bgcolor=99CCCC><A class=tt href="topten.asp?topvalue=9" target=_top>新书周点击榜</A></td>
           </tr>
           <tr>
           <td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
           <%
          '点击排行开始
          set rstj=server.createobject("adodb.recordset")
          sqltj="select top 12 * from list_book where list_date>=dateadd(day,-7,GetDate()) order by list_hit DESC "


          rstj.open sqltj,conn,1,1
          if rstj.eof and rstj.bof then
          %>
           <tr>
           <td align="center">暂无任何排行</td>
           </tr>
           <%else%>
           <%do while not rstj.eof%>
           <tr align="center">
           <td height="25"><a href="book.asp?id=<%=rstj("id")%>"><%=rstj("list_name")%></a>(<%=rstj("list_hit")%>)</td>
           </tr>
           <%rstj.movenext
          loop
          rstj.close
          set rstj=nothing
          '点击排行结束
          %>
           <%end if%>
           </table></td>
           </tr>
           </tbody>
           </table>
           </DIV></TD>
           </TR>
           </TBODY>
           </TABLE></td>
           <td width="602" align="center" valign="top"><table width="98%" border="0" cellpadding="0" cellspacing="0" bgcolor="009999">
           <tr>
           <td><img src="images/space.gif" width="1" height="1"></td>
          


          7楼2006-03-06 11:38
          回复
             </tr>
             </table>
             <table width="98%" height="23" border="0" align="center" cellpadding="0" cellspacing="0">
             <tr>
             <td bgcolor="#E0E0E0">  图书更新列表 >>></td>
             </tr>
             </table>
             <table width="462" border="0" cellspacing="0" cellpadding="0">
             <tr>
             <td width="462"><table width="100%" align="center" cellspacing=0>
             <tbody>
             <%
            '调用最新图书列表
            set rsgx=server.createobject("adodb.recordset")
            sqlgx="select top 25 * from list_book order by list_gxdate desc"
            rsgx.open sqlgx,conn,1,1
            if rsgx.eof and rsgx.bof then
            %>
             <tr align="center" valign="middle">
             <td height=24 colspan="2" class="style1">暂无任何图书列表</td>
             </tr>
             <%else%>
             <%
             do while not rsgx.eof
             dim classid2
            classid2=rsgx("list_class")
            set rsgx1=server.createobject("adodb.recordset")
            sqlgx1="select * from list_type where typeid="&classid2
            rsgx1.open sqlgx1,conn,1,1
            gx_name=replace(rsgx("gx_name"),rsgx("list_name"),"")
            gx_name=replace(gx_name,"·","")
            gx_name=left(gx_name,15)
            %>
             <tr align="left" valign="middle">
             <td width="457" height=24 valign="middle">[<a href="<%=rsgx1("lianjie")%>" target="_blank"><%=rsgx1("list_tpye")%></a>]   <a href="book.asp?id=<%=rsgx("id")%>" target="_blank"> <span class=bookname><font color=#000000><%=rsgx("list_name")%></font></span></a>   <a href="book_jie_new.asp?id=<%=rsgx("gx_id")%>" target="_blank"> <%=rsgx("gx_zj")%> <%=gx_name%></a> </td>
             <td width= 92 nowrap><a href="search.asp?word=<%=rsgx("list_user")%>&xz=zuozhe" target="_blank"><font color="#FF0000"><%=month(rsgx("list_gxdate"))%>-<%=day(rsgx("list_gxdate"))%></font> <%=left(rsgx("list_user"),5)%></a> </td>
             </tr>
             <%
            rsgx.movenext
            loop
            rsgx.close
            set rsgx=nothing
            rsgx1.close
            set rsgx1=nothing
            %>
             <%end if%>
             </tbody>
             </table></td>
             </tr>
             </table>
             </td>
             <td width="193" align="center" valign="top"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="009999">
             <tr> 
             <td><img src="images/space.gif" width="1" height="1"></td>
             </tr>
             </table>
             <TABLE 
             width=95% height=113 border=5 align="center" cellPadding=0 cellSpacing=0 borderColor=#ffffff>
             <TBODY>
             <TR> 
             <TD><DIV align=center> 
             <table height=100 cellspacing=0 cellpadding=0 width="100%" 
             border=0>
             <tbody>
             <tr> 
             <td height=26 align="center" bordercolor=#cfe1c4 bgcolor=99CCCC>周书友点击榜</td>
             </tr>
             <tr> 
             <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
             <%
            '点击排行开始
            set rstjz=server.createobject("adodb.recordset")
            sqltj="select top 12 * from list_book order by zhouhits desc"
            rstjz.open sqltj,conn,1,1
            if rstjz.eof and rstjz.bof then
            %>
             <tr> 
             <td align="center">暂无任何排行</td>
             </tr>
             <%else%>
             <%do while not rstjz.eof%>
             <tr align="center"> 
             <td height="25"><a href="book.asp?id=<%=rstjz("id")%>"><%=rstjz("list_name")%></a>(<%=rstjz("list_hit")%>)</td>
             </tr>
             <%rstjz.movenext
            loop
            rstjz.close
            set rstjz=nothing
            '点击排行结束
            %>
             <%end if%>
             </table></td>
             </tr>
             </tbody>
             </table>
             </DIV></TD>
            


            8楼2006-03-06 11:38
            回复
              你好朋友
              sqlgood="select top 8 * from list_book where IsGood=1 order by id desc" 

              里面错误了,提示list_book是一个不存在的表,你确定一下你的数据库里表的名字,然后这里改成正确的表名即


              IP属地:山东11楼2006-03-06 12:31
              回复
                请问,看表,和创建表


                12楼2006-03-06 12:38
                回复

                  EXEC sp_changeobjectowner '用户.表名', 'dbo'


                  IP属地:四川13楼2008-04-21 09:40
                  回复