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.

徵狀

假設您已在 Microsoft SQL Server 2014 中啟用 [新基數] 估價器。 當您執行包含 join 語句的查詢時,可能會遇到下列問題:

  • 有些查詢需要花很長的時間來編譯,尤其是當查詢有大量的連接時。 隨著連接的增加,編譯時間可能會持續增加。

  • 當 join 謂語使用等式或 equalities 組合的其他條件時,連接中特定類型的估計列數會與所處理的實際資料列數不同。 在這種情況下,查詢效能會降低,而且因為查詢會要求大型記憶體授與,整體伺服器效能會降低。

解決方案

Service pack 資訊

若要解決此問題,請取得 SQL Server 2014 的 Service Pack 1。

如需 SQL Server 2014 Service Pack 1 (SP1)的詳細資訊,請參閱 在 Sql server 2014 Service pack 1 中修正的錯誤。注意: 若要讓修正程式對本文所述的第二個問題生效,請啟用追蹤標記4199。

因應措施

若要解決這些問題,請使用舊版基數估價器,方法是將資料庫相容性等級設為小於120的值,或在全域、會話或查詢層級啟用追蹤9481旗標。

狀態

Microsoft 已確認本篇文章<適用於>一節所列之 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!

×