Iniciar Serviço SQL Agent no Cluster a Partir do Mecanismo de Banco de Dados
Microsoft.SQLServer.2005.StartClusteredSQLAgentFromDBEngine (Task)
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.SQLServer.2005.StartClusteredSQLAgentFromDBEngine" Target="SQL2005Core!Microsoft.SQLServer.2005.DBEngine" Accessibility="Internal" Enabled="true" Remotable="false">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="System!System.CommandExecuter">
<ApplicationName>%windir%\system32\cluster.exe</ApplicationName>
<WorkingDirectory>%windir%\system32</WorkingDirectory>
<CommandLine>/cluster:$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$ resource "$Target/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/AgentClusterName$" /online</CommandLine>
<TimeoutSeconds>300</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</WriteAction>
</Task>