問題描述
在數據庫中執行查詢語句,大約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
執行結果:
參考文章: