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 2016 中引入新的動態管理檢視(DMV) sys.dm_db_stats_histogramSys.dm_db_stats_histogram DMV 是使用長條圖管理命令來改善的 DBCC SHOW_STATISTICS 版本。

Sys.dm_db_stats_histogram DMV 規格的語法提供如下:

             sys.dm_db_stats_histogram (object_id, stats_id)

新的 DMV 會將結果集輸出為如下所示的資料表:

欄名稱

資料類型

描述

object_id

int

要傳回統計物件屬性之物件的識別碼(資料表)。

stats_id

int

統計物件的識別碼。 在資料表中是唯一的。 如需詳細資訊,請參閱 sys. stats (transact-sql)

step_number

int

長條圖中的步驟數。 如需詳細資訊,請參閱 DBCC SHOW_STATISTICS (transact-sql)

range_high_key

int

長條圖步驟的上限欄值。 欄值也稱為金鑰值。

range_rows

Bigint

資料行的估計列數在長條圖步驟內,不含上限。

equal_rows

Bigint

欄值等於長條圖步驟上限的列數估計。

distinct_range_rows

Bigint

在長條圖步驟內有不同欄值的估計列數,不含上限。

average_range_rows

Bigint

在長條圖步驟內有重複列值的資料列數,不含 DISTINCT_RANGE_ROWS > 0 的上限(RANGE_ROWS/DISTINCT_RANGE_ROWS)。

 

解決方案

此改進首先包含在 SQL Server 的下列累積更新中:

SQL Server 2016 SP1 的累積更新2

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

SQL Server 2016 的最新累計更新

 

狀態

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

×