SQL Server database consistency error from event 7105

AK62625.DatabaseConsistencyError7105 (Rule)

In this rule we generate the alert from the event 7105.

Knowledge Base article:

External

http://go.microsoft.com/fwlink/?LinkId=199728

Element properties:

TargetMicrosoft.KnowledgeServices.SQLServer.Database
CategoryAlert
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityHigh
RemotableTrue
Alert Message
SQL Server has encountered a database consistency error: Msg 7105

<Details>
<Content>Msg 7105 was logged in the Windows Application Event Log. This error can indicate a database consistency problem. SQL Server generates a 7105 error when Large Object Binary (LOB) data referenced on a database page is not valid. This can be caused by a database consistency problem or the use of a "dirty read" (the use of READ UNCOMMITTED or NOLOCK).
Consider running a full database consistency check (DBCC CHECKDB) to determine the extent of all consistency errors. See the Information collected below for the database context for which this error was detected.</Content>
<CollectedInformation>
<Info>
<Name>Database reported for this error</Name>
<Value>{0}</Value>
</Info>
</CollectedInformation>
</Details>
Event LogApplication

Member Modules:

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

Source Code:

<Rule ID="AK62625.DatabaseConsistencyError7105" Enabled="true" Target="KnowledgeServicesSQLServerLibrary!Microsoft.KnowledgeServices.SQLServer.Database" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="EventProvider" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Host/Property[Type="MicrosoftSQLServerLibrary!Microsoft.SQLServer.DBEngine"]/ServiceName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">7105</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">EventData/DataItem/*[local-name()='EventData']/*[local-name()='Data'][1]</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">$Target/Property[Type="KnowledgeServicesSQLServerLibrary!Microsoft.KnowledgeServices.SQLServer.Database"]/DatabaseId$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="Health!System.Health.GenerateAlert">
<Priority>2</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="AlertMessageIDbd9574718d244879a861fa02858cfbe0"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="MicrosoftSQLServerLibrary!Microsoft.SQLServer.Database"]/DatabaseName$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue>$Target/Property[Type="MicrosoftSQLServerLibrary!Microsoft.SQLServer.Database"]/DatabaseName$</SuppressionValue>
<SuppressionValue>$Target/Host/Property[Type="MicrosoftSQLServerLibrary!Microsoft.SQLServer.ServerRole"]/InstanceName$</SuppressionValue>
</Suppression>
<Custom1>Administration\Disaster Recovery, Backup/Restore, Attach/Detach, DB corruption</Custom1>
<Custom2/>
<Custom3/>
<Custom4/>
<Custom5/>
<Custom6/>
<Custom7/>
<Custom8/>
<Custom9/>
<Custom10>1.0.0.1</Custom10>
</WriteAction>
</WriteActions>
</Rule>