Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

徵狀

如果下列情況屬實,您的查詢可能會執行緩慢:

  • 查詢會使用匯總,例如 [ 群組依據]。

  • SQL Server 在查詢方案中使用雜湊匯總。

  • 重複次數的估計值會比匯總的實際重複值少許多。

發生這個問題時,如果您執行探測器或延伸事件追蹤,就會看到雜湊警告事件。

原因

之所以發生這個問題,是因為 SQL Server underestimates 所需的記憶體授權數量。 這會產生 intermiedate 的結果超出至 tempdb。

解決方案

這個問題首先是在下列 SQL Server 累積更新中修正:

注意您必須啟用追蹤標誌9410來啟用此修正程式。

每個新的 SQL Server 累計更新都包含所有的修正程式,以及前一個累積更新中所包含的所有安全性修正程式。 我們建議您下載並安裝最新的 SQL Server 累積更新:

參考

瞭解 Microsoft 用於描述軟體更新的 詞彙

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×