在数据库中执行查询语句,大约1秒钟查询出来,在C#中用ado进行连接查询,一直等待很久未查出结果,最后抛出查询超时异常。
异常内容如下:
Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
解决方案:
执行以下sql语句,更新索引统计信息:
exec sp_updatestats
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请
点击举报。