解决 Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. 的问题

在数据库中执行查询语句,大约1秒钟查询出来,在C#中用ado进行连接查询,一直等待很久未查出结果,最后抛出查询超时异常。

异常内容如下:

Execution Timeout Expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.

解决方案:

exec sp_updatestats
dbcc freeproccache
posted @ 2021-03-11 09:25  devsuperdata  阅读(1812)  评论(0编辑  收藏  举报
如果有不明白操作流程和使用方法,请及时与我们联系。