日期:2014-05-19  浏览次数:20452 次

请高手帮忙----异常详细信息: 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 检查表名