提交服务器出现 “超时时间已到”问题请帮忙看看
源错误: 行 252: SqlDataAdapter cmd = new SqlDataAdapter(sel_str,conn);
行 253: DataSet ds = new DataSet();
行 254: cmd.Fill(ds);
行 255: foreach(DataRow dr in ds.Tables[0].Rows)
行 256: {
源文件: D:\patrolsys\Systex.WebGIS.WebClient\PatrolAnnalAnalysis.aspx.cs 行: 254
堆栈跟踪:
[SqlException: 超时时间已到。在操作完成之前超时时间已过或服务器未响应。]
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +742
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) +45
System.Data.SqlClient.SqlCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +5
System.(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +304
System.(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +77
System.(DataSet dataSet) +38
Systex.WebGIS.WebClient.PatrolAnnalAnalysis.btnSearch_Click(Object sender, EventArgs e) in D:\patrolsys\Systex.WebGIS.WebClient\PatrolAnnalAnalysis.aspx.cs:254
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1292
提示说是 行 254: cmd.Fill(ds); 有问题,但没看出什么问题啊?
谢谢帮我看看问题出在哪里?该如何解决? 我的数据库采用sql2000,数据库文件大小约500mb
[ 本帖最后由 潍猊 于 2010-8-29 21:57 编辑 ]