Column.UpdateStatistics 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| UpdateStatistics(StatisticsScanType, Int32) |
強制更新資料分配統計資料,針對參考索引或 SQL Server 資料表上定義的所有索引進行更新。 |
| UpdateStatistics(StatisticsScanType) |
強制更新資料分配統計資料,針對參考索引或 SQL Server 資料表上定義的所有索引進行更新。 |
| UpdateStatistics(StatisticsScanType, Int32, Boolean) |
強制更新資料分配統計資料,針對參考索引或 SQL Server 資料表上定義的所有索引進行更新。 |
| UpdateStatistics() |
強制更新資料分配統計資料,針對參考索引或 SQL Server 資料表上定義的所有索引進行更新。 |
UpdateStatistics(StatisticsScanType, Int32)
強制更新資料分配統計資料,針對參考索引或 SQL Server 資料表上定義的所有索引進行更新。
public void UpdateStatistics(Microsoft.SqlServer.Management.Smo.StatisticsScanType scanType, int sampleValue);
member this.UpdateStatistics : Microsoft.SqlServer.Management.Smo.StatisticsScanType * int -> unit
Public Sub UpdateStatistics (scanType As StatisticsScanType, sampleValue As Integer)
參數
- scanType
- StatisticsScanType
- sampleValue
- Int32
適用於
UpdateStatistics(StatisticsScanType)
強制更新資料分配統計資料,針對參考索引或 SQL Server 資料表上定義的所有索引進行更新。
public void UpdateStatistics(Microsoft.SqlServer.Management.Smo.StatisticsScanType scanType);
member this.UpdateStatistics : Microsoft.SqlServer.Management.Smo.StatisticsScanType -> unit
Public Sub UpdateStatistics (scanType As StatisticsScanType)
參數
- scanType
- StatisticsScanType
適用於
UpdateStatistics(StatisticsScanType, Int32, Boolean)
強制更新資料分配統計資料,針對參考索引或 SQL Server 資料表上定義的所有索引進行更新。
public void UpdateStatistics(Microsoft.SqlServer.Management.Smo.StatisticsScanType scanType, int sampleValue, bool recompute);
member this.UpdateStatistics : Microsoft.SqlServer.Management.Smo.StatisticsScanType * int * bool -> unit
Public Sub UpdateStatistics (scanType As StatisticsScanType, sampleValue As Integer, recompute As Boolean)
參數
- scanType
- StatisticsScanType
- sampleValue
- Int32
- recompute
- Boolean
適用於
UpdateStatistics()
強制更新資料分配統計資料,針對參考索引或 SQL Server 資料表上定義的所有索引進行更新。
public void UpdateStatistics();
member this.UpdateStatistics : unit -> unit
Public Sub UpdateStatistics ()