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
)
参数
- scanType
类型:Microsoft.SqlServer.Management.Smo. . :: . .StatisticsScanType
一个 StatisticsScanType 对象值,指定在创建或者更新 Statistic 对象的过程中要执行的类型操作。
- sampleValue
类型:System. . :: . .Int32
一个 Int32 值,指定要在抽样扫描中使用的行数或总行数的百分比。仅当 scanType 指示为抽样扫描时才需要使用此参数。
- recompute
类型:System. . :: . .Boolean
一个 Boolean 值,指定是否将要自动重新计算统计信息。
如果为 True,则自动重新计算统计信息。否则为 False。
注释
注意 |
|---|
Columns based on the UserDefinedTableType object cannot be modified and this method generates an exception. |
注意