MSSQL 2016: 참조된 테이블을 열 수 없습니다.

Microsoft.SQLServer.2016.Could_not_open_referenced_table_1_5_Rule (Rule)

스키마 안정성 잠금(LCK_M_SCH_S 또는 Sch-S)을 사용하는 테이블에서 제약 조건을 추가, 삭제 또는 수정하려고 합니다. 스키마 안정성 잠금은 DDL과 호환되지 않습니다. 이 테이블과 관련된 쿼리 중 컴파일하는 데 오랜 시간이 걸리는 쿼리에서 잠근 것일 수 있습니다.

Knowledge Base article:

요약

스키마 안정성 잠금(LCK_M_SCH_S 또는 Sch-S)을 사용하는 테이블에서 제약 조건을 추가, 삭제 또는 수정하려고 합니다. 스키마 안정성 잠금은 DDL과 호환되지 않습니다. 이 테이블과 관련된 쿼리 중 컴파일하는 데 오랜 시간이 걸리는 쿼리에서 잠근 것일 수 있습니다.

해결 방법

이 테이블에 액세스하는 쿼리가 더 이상 컴파일하지 않을 때까지 기다렸다가 DDL을 다시 시도하십시오.

스키마 안정성 잠금에 대한 자세한 내용은 온라인 설명서의 "SQL Server 잠금 설정의 이해" 항목을 참조하십시오.

재정의 가능한 매개 변수

이름

설명

기본값

사용

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

우선 순위

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

1

심각도

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

1

Element properties:

TargetMicrosoft.SQLServer.2016.DBEngine
CategoryEventCollection
EnabledTrue
Event_ID436
Event Source$Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.DBEngine"]/ServiceName$
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
MSSQL 2016: 참조된 테이블을 열 수 없습니다.
{0}
Event LogApplication
CommentMom2016ID='{58C39A58-CC65-4773-A415-D395EB331895}';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.Could_not_open_referenced_table_1_5_Rule" Target="SQL2016Core!Microsoft.SQLServer.2016.DBEngine" Enabled="true" ConfirmDelivery="true" Remotable="true" Comment="Mom2016ID='{58C39A58-CC65-4773-A415-D395EB331895}';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>436</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SQLServer.2016.Could_not_open_referenced_table_1_5_Rule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>Event ID: $Data/EventDisplayNumber$. $Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>