语言

Statistic.Update 方法

定义

重载

名称 说明
Update()

更新统计信息

Update(StatisticsScanType)

更新统计信息

<param name=“scanType”>确定扫描类型(FullScan、Percent Sample、Rows Sample、Resample)</param>
Update(StatisticsScanType, Int32)

更新统计信息

<param name=“scanType”>确定扫描类型(FullScan、Percent Sample、Rows Sample、Resample)</param><param param name=“sampleValue”>确定要采样</param 的百分比或行>
Update(StatisticsScanType, Int32, Boolean)

更新统计信息

<param name=“scanType”>确定扫描类型(FullScan,Percent Sample, Rows Sample, Resample)</param><param param name=“sampleValue”>确定采样</param param><name=“recompute”>确定是否启用了<自动统计信息更新/param>

Update()

更新统计信息

public void Update();
member this.Update : unit -> unit
Public Sub Update ()

适用于

Update(StatisticsScanType)

更新统计信息

<param name=“scanType”>确定扫描类型(FullScan、Percent Sample、Rows Sample、Resample)</param>
public void Update(Microsoft.SqlServer.Management.Smo.StatisticsScanType scanType);
member this.Update : Microsoft.SqlServer.Management.Smo.StatisticsScanType -> unit
Public Sub Update (scanType As StatisticsScanType)

参数

适用于

Update(StatisticsScanType, Int32)

更新统计信息

<param name=“scanType”>确定扫描类型(FullScan、Percent Sample、Rows Sample、Resample)</param><param param name=“sampleValue”>确定要采样</param 的百分比或行>
public void Update(Microsoft.SqlServer.Management.Smo.StatisticsScanType scanType, int sampleValue);
member this.Update : Microsoft.SqlServer.Management.Smo.StatisticsScanType * int -> unit
Public Sub Update (scanType As StatisticsScanType, sampleValue As Integer)

参数

sampleValue
Int32

适用于

Update(StatisticsScanType, Int32, Boolean)

更新统计信息

<param name=“scanType”>确定扫描类型(FullScan,Percent Sample, Rows Sample, Resample)</param><param param name=“sampleValue”>确定采样</param param><name=“recompute”>确定是否启用了<自动统计信息更新/param>
public void Update(Microsoft.SqlServer.Management.Smo.StatisticsScanType scanType, int sampleValue, bool recompute);
member this.Update : Microsoft.SqlServer.Management.Smo.StatisticsScanType * int * bool -> unit
Public Sub Update (scanType As StatisticsScanType, sampleValue As Integer, recompute As Boolean)

参数

sampleValue
Int32
recompute
Boolean

适用于