首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

请高手帮忙-错误详细信息: System.Data.SqlClient.SqlException: 对象名 'tc_information' 无效

2011-12-29 
请高手帮忙----异常详细信息: System.Data.SqlClient.SqlException: 对象名 tc_information 无效。“/3CMa

请高手帮忙----异常详细信息: System.Data.SqlClient.SqlException: 对象名 'tc_information' 无效。
“/3CMarket”应用程序中的服务器错误。
--------------------------------------------

对象名   'tc_information '   无效。  
说明:   执行当前   Web   请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。  

异常详细信息:   System.Data.SqlClient.SqlException:   对象名   'tc_information '   无效。

源错误:  


行   41:   SqlDataAdapter   myadp   =   new   SqlDataAdapter( "select   top   17   in_id,in_subject,in_createdate   from   tc_information   where   in_ispass=1   and   in_fillertype=1   order   by   in_createdate   desc ",MyCls.SqlConn);
行   42:   DataSet   myds   =   new   DataSet();
行   43:   myadp.Fill(myds, "webinfo ");
行   44:  
行   45:   if(myds.Tables[ "webinfo "].Rows.Count   >   0)
 

源文件:   e:\n\3CMarket\index.aspx.cs         行:   43

[解决办法]
tc_information 表名错了?
[解决办法]
没有tc_information表
[解决办法]
select top 17 in_id,in_subject,in_createdate from tc_information where in_ispass=1 and in_fillertype=1 order by in_createdate desc

看一下这条语句在sql 查询分析器里面好使不
[解决办法]
tc_information 检查表名

热点排行