Statistic.SetScanOptions 方法

Sets the scan options for the statistic counter.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Sub SetScanOptions ( _
    type As StatisticsScanType, _
    no As Integer _
)
用法
Dim instance As Statistic 
Dim type As StatisticsScanType 
Dim no As Integer

instance.SetScanOptions(type, no)
public void SetScanOptions(
    StatisticsScanType type,
    int no
)
public:
void SetScanOptions(
    StatisticsScanType type, 
    int no
)
member SetScanOptions : 
        type:StatisticsScanType * 
        no:int -> unit
public function SetScanOptions(
    type : StatisticsScanType, 
    no : int
)

参数

  • no
    类型:System.Int32
    An Int32 value that specifies the size of the sample value.

示例

创建和更新统计信息

请参阅

参考

Statistic 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

CREATE STATISTICS (Transact-SQL)