0
我有一个SQL查询,需要大约8-10分钟执行,我想更改服务器执行时间,以便结果查询显示在网页上。无法更改最大执行时间asp.net,Sql查询花费太长的时间执行
的网页停止响应后二段30
我尝试以下
在文件
httpRuntime executionTimeout="200" maxRequestLength="25600"
在连接字符串
add name="AgeingConnectionString" connectionString="DataSource=DTB00B51237\SQLEXPRESS;Initial Catalog=Ageing;Integrated Security=True;ConnectionTimeout=200" providerName="System.Data.SqlClient" />
更改 “调试” 来“false”
compilation debug="false" targetFramework="4.0"/>
静止的页面后30秒]
我查过了,没有这个问题 –
httpRuntime maxRequestLength单位是KB,我猜你的执行数据大小超过25MB?如果您使用GridView显示数据结果,则可以尝试禁用ViewState。设置GridView EnableViewState =“false” –