次の方法で共有


TableViewBase.UpdateStatistics メソッド (StatisticsTarget, StatisticsScanType)

実行されたスキャンの対象および種類を指定するオプションを使用して、テーブルまたはビューの統計を更新します。

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

構文

'宣言
Public Sub UpdateStatistics ( _
    affectType As StatisticsTarget, _
    scanType As StatisticsScanType _
)
'使用
Dim instance As TableViewBase 
Dim affectType As StatisticsTarget 
Dim scanType As StatisticsScanType

instance.UpdateStatistics(affectType, _
    scanType)
public void UpdateStatistics(
    StatisticsTarget affectType,
    StatisticsScanType scanType
)
public:
void UpdateStatistics(
    StatisticsTarget affectType, 
    StatisticsScanType scanType
)
member UpdateStatistics : 
        affectType:StatisticsTarget * 
        scanType:StatisticsScanType -> unit
public function UpdateStatistics(
    affectType : StatisticsTarget, 
    scanType : StatisticsScanType
)

パラメーター

使用例

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

関連項目

参照

TableViewBase クラス

UpdateStatistics オーバーロード

Microsoft.SqlServer.Management.Smo 名前空間

その他の技術情報

テーブル

ビュー

CREATE TABLE (Transact-SQL)

CREATE VIEW (Transact-SQL)

UPDATE STATISTICS (Transact-SQL)