MSSQL 2016: MSSQL Server 服务意外终止

Microsoft.SQLServer.2016.The_MSSQLServer_service_terminated_unexpectedly_3_5_Rule (Rule)

SQL Server 代理服务自动重新启动 SQL Server 时报告该错误。仅当除用户或应用程序显式停止命令之外的某种原因导致 SQL Server 停止,且在 SQL Server 代理高级属性中选中了“SQL Server 意外停止时自动重新启动”选项时,SQL Server 代理将自动重新启动 SQL Server。在 SQL Server 重新启动期间,SQL Server 代理将此消息写入到承载 SQL Server 的计算机上的应用程序事件日志中。

Knowledge Base article:

摘要

SQL Server 代理服务自动重新启动 SQL Server 时报告该错误。仅当除用户或应用程序显式停止命令之外的某种原因导致 SQL Server 停止,且在 SQL Server 代理高级属性中选中了“SQL Server 意外停止时自动重新启动”选项时,SQL Server 代理将自动重新启动 SQL Server。在 SQL Server 重新启动期间,SQL Server 代理将此消息写入到承载 SQL Server 的计算机上的应用程序事件日志中。

SQL Server 意外停止可能有几种不同的原因。这些原因包括:

解决方法

如果不希望 SQL Server 代理自动重新启动 SQL Server,请关闭该选项。联机丛书中的“SQL Server 代理属性(高级选项卡)”描述了此操作的步骤。

如果该问题重复发生,则您需要确定 SQL Server 服务意外停止的原因:

可替代参数

名称

说明

默认值

已启用

启用或禁用工作流。

优先级

定义警报优先级。

1

严重性

定义警报严重性。

2

Element properties:

TargetMicrosoft.SQLServer.2016.DBEngine
CategoryEventCollection
EnabledTrue
Event_ID14265
Event Source$Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.DBEngine"]/ServiceName$
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
MSSQL 2016: MSSQL Server 服务意外终止
{0}
Event LogApplication
CommentMom2016ID='{D9D2C13A-3AAA-410C-B594-EC4ED1A7FC75}';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.The_MSSQLServer_service_terminated_unexpectedly_3_5_Rule" Target="SQL2016Core!Microsoft.SQLServer.2016.DBEngine" Enabled="true" ConfirmDelivery="true" Remotable="true" Comment="Mom2016ID='{D9D2C13A-3AAA-410C-B594-EC4ED1A7FC75}';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>14265</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.The_MSSQLServer_service_terminated_unexpectedly_3_5_Rule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>Event ID: $Data/EventDisplayNumber$. $Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>