在SQL Server -2005&中执行Sql查询时超时异常2008年 [英] Time Out Exception While Executing a Sql Query in SQL Server -2005 & 2008

查看:103
本文介绍了在SQL Server -2005&中执行Sql查询时超时异常2008年的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

System.Exception: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding


推荐答案

尝试增加CommandTimeout属性: ^ ]
Try increasing the CommandTimeout property : http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.commandtimeout.aspx[^]




将此代码添加到您的Web.Config中

Hi ,

Add This Code On Your Web.Config

<system.web>
    <httpRuntime maxRequestLength="2097151" 

     enable = "True" executionTimeout="45" />
  </system.web>




希望对您有帮助




Hope this may help you


这篇关于在SQL Server -2005&amp;中执行Sql查询时超时异常2008年的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆