MSSQL 2016: O serviço MSSQLServer foi encerrado inesperadamente

Microsoft.SQLServer.2016.The_MSSQLServer_service_terminated_unexpectedly_3_5_Rule (Rule)

O erro é relatado pelo serviço SQL Server Agent quando ele reinicia automaticamente o SQL Server. O SQL Server Agent só reiniciará automaticamente o SQL Server se este tiver sido interrompido por um motivo que não seja um comando de parada explícita de um usuário ou aplicativo e se a opção Reiniciar automaticamente o SQL Server se ele parar inesperadamente estiver selecionada em Propriedades Avançadas do SQL Server Agent. Durante a reinicialização do SQL Server, o SQL Server Agent gravará essa mensagem no log de eventos do aplicativo no computador que hospeda o SQL Server.

Knowledge Base article:

Resumo

O erro é relatado pelo serviço SQL Server Agent quando ele reinicia automaticamente o SQL Server. O SQL Server Agent só reiniciará automaticamente o SQL Server se este tiver sido interrompido por um motivo que não seja um comando de parada explícita de um usuário ou aplicativo e se a opção Reiniciar automaticamente o SQL Server se ele parar inesperadamente estiver selecionada em Propriedades Avançadas do SQL Server Agent. Durante a reinicialização do SQL Server, o SQL Server Agent gravará essa mensagem no log de eventos do aplicativo no computador que hospeda o SQL Server.

O SQL Server pode parar inesperadamente por vários motivos diferentes. Esses motivos incluem:

Resoluções

Se você não quiser que o SQL Server Agent reinicie automaticamente o SQL Server, desative a opção. Esse procedimento está descrito nos tópicos dos Manuais Online sobre propriedades do SQL Server Agent (guia Avançado).

Se o problema ocorrer várias vezes, você precisará determinar o motivo pelo qual o serviço do SQL Server parou inesperadamente:

Parâmetros Substituíveis

Nome

Descrição

Valor padrão

Habilitado

Habilita ou desabilita o fluxo de trabalho.

Sim

Prioridade

Define a Prioridade do Alerta.

1

Gravidade

Define a Severidade do Alerta.

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: O serviço MSSQLServer foi encerrado inesperadamente
{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>