Проверка каталога (DBCC)
Microsoft.SQLServer.2008.Database.DBCC.CheckCatalog (Task)
Проверяет согласованность каталогов в указанной базе данных. База данных должна быть в режиме в сети.
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.SQLServer.2008.Database.DBCC.CheckCatalog" Target="SQL2008Core!Microsoft.SQLServer.2008.Database" Accessibility="Internal" Enabled="true">
<Category>Maintenance</Category>
<ProbeAction ID="PA" TypeID="System!System.CommandExecuterProbe" RunAs="SQL!Microsoft.SQLServer.SQLDefaultAccount">
<ApplicationName>$Target/Host/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ToolsPath$\Binn\OSQL.EXE</ApplicationName>
<WorkingDirectory>$Target/Host/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ToolsPath$\Binn</WorkingDirectory>
<CommandLine>-S $Target/Host/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ConnectionString$ -E -Q "DBCC CHECKCATALOG('$Target/Property[Type="SQL!Microsoft.SQLServer.Database"]/DatabaseName$')"</CommandLine>
<TimeoutSeconds>300</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
</ProbeAction>
</Task>