【发布时间】:2014-09-24 15:42:35
【问题描述】:
让一个网站运行一个查询,该查询可以很好地处理返回的少量数据。当用户运行一个需要很长时间运行的时间框架时,我会不断得到
[System.Data.SqlClient.SqlException] = {"Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding."}
此查询在 SQL 服务器本身上运行不会超时。
我在 Web.config 中有以下内容
<httpRuntime executionTimeout="360000"/>
项目在更新面板中运行,所以我有这个
<asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="360000"/>
我在连接字符串中设置了超时,并在 sql 命令中设置了一个但没有更改。
【问题讨论】:
-
从管理工作室运行查询需要多长时间?