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

サンプリングされたスキャンを使用してこの列を監視する Statistic オブジェクトを更新します。

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

構文

'宣言
Public Sub UpdateStatistics ( _
    scanType As StatisticsScanType, _
    sampleValue As Integer _
)
'使用
Dim instance As Column 
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
)

パラメーター

  • sampleValue
    型: System.Int32
    サンプリングされたスキャンで使用する行数または行の合計数の割合を示す Int32 値です。 このパラメーターは、scanType がサンプリングされたスキャンを示す場合にのみ必要です。

説明

注意

UserDefinedTableType オブジェクトに基づく列は変更できないため、このメソッドは例外を生成します。

使用例

データベース オブジェクトでの作業

関連項目

参照

Column クラス

UpdateStatistics オーバーロード

Microsoft.SqlServer.Management.Smo 名前空間

その他の技術情報

UPDATE STATISTICS (Transact-SQL)

統計