Index.UpdateStatistics メソッド (StatisticsScanType, Int32)

指定した統計スキャンの種類とサンプル サイズを使用して、参照先のインデックスの統計を更新します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
Public Sub UpdateStatistics ( _
    scanType As StatisticsScanType, _
    sampleValue As Integer _
)
'使用
Dim instance As Index 
Dim scanType As StatisticsScanType 
Dim sampleValue As Integer

instance.UpdateStatistics(scanType, sampleValue)
public void UpdateStatistics(
    StatisticsScanType scanType,
    int sampleValue
)
public:
void UpdateStatistics(
    StatisticsScanType scanType, 
    int sampleValue
)
member UpdateStatistics : 
        scanType:StatisticsScanType * 
        sampleValue:int -> unit
public function UpdateStatistics(
    scanType : StatisticsScanType, 
    sampleValue : int
)

パラメーター

説明

注意

UserDefinedTableType オブジェクトに部分的に基づくインデックスは統計をサポートしないため、このメソッドを実行すると例外が発生します。

使用例

インデックスの作成、変更、および削除

関連項目

参照

Index クラス

UpdateStatistics オーバーロード

Microsoft.SqlServer.Management.Smo 名前空間

その他の技術情報

インデックス

UPDATE STATISTICS (Transact-SQL)