====请教Sql server的Timeout Expired的问题==========
我的一个Sql语句在查询分析器中执行的时间是3分钟,但是在程序就打开却出现错误:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
Source Error:
部分程序如下:
Dim ConnStr As String
ConnStr = System.Configuration.ConfigurationSettings.AppSettings("kingseer_dbConnectionString").ToString
Dim MyConnection As SqlClient.SqlConnection
MyConnection = New SqlClient.SqlConnection(ConnStr)
MyConnection.Open()
string sql="select * from table"
Dim dsdataSet As New DataSet1()
Dim daOrders As New Data.SqlClient.SqlDataAdapter(sql, MyConnection)
daOrders.Fill(dsdataSet, "t_biao_cnskb")
'使用“报表引擎”对象模型将填充的数据集,传递给报表
oRpt.SetDataSource(dsdataSet)
CrystalReportViewer1.ReportSource = oRpt
请回答,谢谢!