StatisticsScanType Enumeration

The StatisticsScanType enumeration contains values that specify the ways in which statistical information is collected from tables or views during the creation or update of a statistic counter.

命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

語法

'宣告
Public Enumeration StatisticsScanType
public enum StatisticsScanType
public enum class StatisticsScanType
public enum StatisticsScanType
public enum StatisticsScanType

Members

Member name Description
Default Value = 5. Specifies that a percentage of the table or indexed view is used when collecting statistics. The actual percentage is calculated by the Microsoft SQL Server engine automatically.
FullScan Value = 3. Specifies that all rows in the table or view are read when gathering statistics. This option must be used if a view is specified and it references more than one table.
Percent Value = 1. Specifies that a percentage of the table or indexed view is used when collecting statistics. This options cannot be used if a view is specified and it references more than one table. When specified, use the sampleValue argument to indicate number of rows.
Resample Value = 4. Specifies that the percentage ratio of the table or indexed view used when collecting statistics is inherited from existing the statistics.
Rows Value = 2. Specifies that a number of rows in the table or indexed view are used when collecting statistics. This option cannot be used if a view is specified and it references more than one table. When specified, use the sampleValue argument to indicate number of rows.

備註

The StatisticsScanType enumeration class is served by the SetScanOptions method and the Update method.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

Microsoft.SqlServer.Management.Smo Namespace