SQL Agent-Dienst auf dem Cluster starten
Microsoft.SQLServer.2012.StartClusteredSQLAgentFromJob (Task)
SQL Agent-Dienst auf dem Cluster starten.
Beachten Sie, dass Clustering von keiner Edition von SQL Express unterstützt wird.
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.SQLServer.2012.StartClusteredSQLAgentFromJob" Target="SQL2012Core!Microsoft.SQLServer.2012.AgentJob" 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/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$ resource "$Target/Host/Host/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/AgentClusterName$" /online</CommandLine>
<TimeoutSeconds>300</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</WriteAction>
</Task>