MSSQL 2016: 테이블: 다음 열에 대한 통계를 만듭니다.

Microsoft.SQLServer.2016.Table__Creating_statistics_for_the_following_columns_1_5_Rule (Rule)

sp_createstats가 현재 데이터베이스에서 적합한 각 열에 대한 통계를 생성했습니다. 계산 열 및 ntext, text 또는 image 데이터 형식의 열을 통계 열로 지정할 수 없습니다. 이미 통계가 있는 열(예: 인덱스의 첫 번째 열 또는 명시적으로 만든 통계가 있는 열)에는 작업하지 않습니다. 참고: 이 규칙은 기본적으로 사용하지 않도록 설정되어 있습니다. 필요한 경우 사용하도록 설정하려면 재정의를 사용하십시오.

Knowledge Base article:

요약

sp_createstats가 현재 데이터베이스에서 적합한 각 열에 대한 통계를 생성했습니다. 계산 열 및 ntext, text 또는 image 데이터 형식의 열을 통계 열로 지정할 수 없습니다. 이미 통계가 있는 열(예: 인덱스의 첫 번째 열 또는 명시적으로 만든 통계가 있는 열)에는 작업하지 않습니다.

해결 방법

사용자가 조치할 필요는 없습니다.

재정의 가능한 매개 변수

이름

설명

기본값

사용

워크플로를 사용하거나 사용하지 않도록 설정합니다.

아니요

우선 순위

알림 우선 순위를 정의합니다.

1

심각도

알림 심각도를 정의합니다.

2

Element properties:

TargetMicrosoft.SQLServer.2016.DBEngine
CategoryEventCollection
EnabledFalse
Event_ID15018
Event Source$Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.DBEngine"]/ServiceName$
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
MSSQL 2016: 테이블: 다음 열에 대한 통계를 만듭니다.
{0}
Event LogApplication
CommentMom2016ID='{EA634635-59C0-44DC-A815-3379734509AC}';MOM2016GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74}

Member Modules:

ID Module Type TypeId RunAs 
_F6DA1507_12AF_11D3_AB21_00A0C98620CE_ DataSource Microsoft.Windows.EventProvider Default
GenerateAlert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.SQLServer.2016.Table__Creating_statistics_for_the_following_columns_1_5_Rule" Target="SQL2016Core!Microsoft.SQLServer.2016.DBEngine" Enabled="false" ConfirmDelivery="true" Remotable="true" Comment="Mom2016ID='{EA634635-59C0-44DC-A815-3379734509AC}';MOM2016GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74}">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="_F6DA1507_12AF_11D3_AB21_00A0C98620CE_" Comment="{F6DA1507-12AF-11D3-AB21-00A0C98620CE}" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>$Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.DBEngine"]/ServiceName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>15018</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SQLServer.2016.Table__Creating_statistics_for_the_following_columns_1_5_Rule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>Event ID: $Data/EventDisplayNumber$. $Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>