문서를 영문으로 보려면 영문 확인란을 선택하세요. 마우스 포인터를 텍스트 위로 이동시켜 팝업 창에서 영문 텍스트를 표시할 수도 있습니다.
번역
영문

Statistic.Update 메서드 (StatisticsScanType, Int32, Boolean)

Updates information about the distribution of key values.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

public void Update(
	StatisticsScanType scanType,
	int sampleValue,
	bool recompute
)

매개 변수

scanType
유형: Microsoft.SqlServer.Management.Smo.StatisticsScanType
StatisticsScanType
sampleValue
유형: System.Int32
Int32 - Specifies the percentage of the table or indexed view, or the number of rows to sample when collecting statistics for larger tables or views.
recompute
유형: System.Boolean
Boolean - Specifies if statistics that are out of date are automatically recomputed

StatisticsScanType are listed in the following table.

Member

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 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

커뮤니티 추가 항목

추가
표시: