Check Catalog (DBCC)

Microsoft.SQLServer.Windows.Task.Database.DBCCCheckCatalog (Task)

Checks for catalog consistency within the specified database. The database must be online.

Element properties:

TargetMicrosoft.SQLServer.Windows.Database
AccessibilityInternal
CategoryMaintenance
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

ID Module Type TypeId RunAs 
WA ProbeAction Microsoft.SQLServer.Windows.ProbeAction.DBCCCommandExecutor Microsoft.SQLServer.Core.RunAs.Task

Source Code:

<Task ID="Microsoft.SQLServer.Windows.Task.Database.DBCCCheckCatalog" Target="SqlDiscW!Microsoft.SQLServer.Windows.Database" Accessibility="Internal" Enabled="true">
<Category>Maintenance</Category>
<ProbeAction ID="WA" TypeID="Microsoft.SQLServer.Windows.ProbeAction.DBCCCommandExecutor" RunAs="SqlCoreLib!Microsoft.SQLServer.Core.RunAs.Task">
<MachineName>$Target/Host/Property[Type="SqlCoreLib!Microsoft.SQLServer.Core.DBEngine"]/MachineName$</MachineName>
<NetbiosComputerName>$Target/Host/Property[Type="SqlCoreLib!Microsoft.SQLServer.Core.DBEngine"]/NetbiosComputerName$</NetbiosComputerName>
<InstanceName>$Target/Host/Property[Type="SqlCoreLib!Microsoft.SQLServer.Core.DBEngine"]/InstanceName$</InstanceName>
<ConnectionString>$Target/Host/Property[Type="SqlCoreLib!Microsoft.SQLServer.Core.DBEngine"]/ConnectionString$</ConnectionString>
<InstanceVersion>$Target/Host/Property[Type="SqlCoreLib!Microsoft.SQLServer.Core.DBEngine"]/Version$</InstanceVersion>
<InstanceEdition>$Target/Host/Property[Type="SqlCoreLib!Microsoft.SQLServer.Core.DBEngine"]/Edition$</InstanceEdition>
<MonitoringType>$Target/Host/Property[Type="SqlDiscW!Microsoft.SQLServer.Windows.DBEngine"]/MonitoringType$</MonitoringType>
<Login>$RunAs[Name="SqlCoreLib!Microsoft.SQLServer.Core.RunAs.SqlCredentials"]/UserName$</Login>
<Password>$RunAs[Name="SqlCoreLib!Microsoft.SQLServer.Core.RunAs.SqlCredentials"]/Password$</Password>
<CommandName>CHECKCATALOG</CommandName>
<DatabaseName>$Target/Property[Type="SqlCoreLib!Microsoft.SQLServer.Core.Database"]/DatabaseName$</DatabaseName>
<SqlExecTimeoutSeconds>60</SqlExecTimeoutSeconds>
<SqlTimeoutSeconds>15</SqlTimeoutSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<Publisher>SQLMonitoringWindows</Publisher>
<ManagementGroupName>$Target/ManagementGroup/Name$</ManagementGroupName>
</ProbeAction>
</Task>