共用方式為


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)