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 2012 或 SQL Server 2014 中的 [前導索引] 資料行。 當少於90% 的插入列的值超過長條圖中的最高RANGE_HI_KEY 值時,系統會將該列視為固定,而不是遞增。 因此,不會偵測到 [遞增] 索引鍵,且通常用來修正 [遞增鍵] 問題的追蹤旗標2389和2390則無法運作。 當您使用的謂語超出現有統計的 RANGE_HI_KEY 值時,這會產生較差的基數估計。注意: 當您套用此累積更新時,您應該啟用追蹤標誌4139。 這會導致 SQL Server 在所述的案例中,不論前導欄狀態為何([遞增]、[遞減] 或 [固定]),都總是修正長條圖。

解決方案

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

Sql server 2012 2014SP2 累積更新1 (適用于 sql server 2012 SP1)累積更新10(適用于 sql server SP1

每個新的 SQL Server 累計更新都包含所有的修正程式,以及前一個累積更新中所包含的所有安全性修正程式。 查看 SQL Server 的最新累計更新:

狀態

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!

×