本文介紹了您多久更新一次 SQL Server 2000 中的統計信息?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我想知道之前更新統計數據是否對您有幫助,您是如何知道更新它們的?
I'm wondering if updating statistics has helped you before and how did you know to update them?
推薦答案
exec sp_updatestats
是的,如果您發現查詢沒有達到應有的效果,更新統計信息會非常有用.這可以通過檢查查詢計劃并注意何時執行表掃描或索引掃描而不是索引查找來證明.所有這些都假設您已正確設置索引.
Yes, updating statistics can be very helpful if you find that your queries are not performing as well as they should. This is evidenced by inspecting the query plan and noticing when, for example, table scans or index scans are being performed instead of index seeks. All of this assumes that you have set up your indexes correctly.
還有 UPDATE STATISTICS 命令,但我'我個人從未使用過.
There is also the UPDATE STATISTICS command, but I've personally never used that.
這篇關于您多久更新一次 SQL Server 2000 中的統計信息?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!