读书人

请高手帮忙-错误详细信息: System.Dat

发布时间: 2011-12-29 22:09:38 作者: rapoo

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

读书人网 >asp.net

热点推荐