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

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

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

構文

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

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

パラメーター

  • sampleValue
    型: System.Int32
    サンプリングされたスキャンで使用する行数または行の合計数の割合を示す Int32 値です。 このパラメーターは、scanType がサンプリングされたスキャンを示す場合にのみ必要です。
  • recompute
    型: System.Boolean
    統計値を自動的に再計算するかどうかを示す Boolean 値です。True の場合、統計値が自動的に再計算されます。 False の場合は、統計値は自動的に再計算されません。

説明

注意

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

使用例

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

関連項目

参照

Column クラス

UpdateStatistics オーバーロード

Microsoft.SqlServer.Management.Smo 名前空間

その他の技術情報

UPDATE STATISTICS (Transact-SQL)

統計