停止群集上的 SQL Server 服务
Microsoft.SQLServer.2012.DBEngine.StopClusteredService (Task)
停止群集上的 SQL Server 服务。
请注意,所有 SQL Express 版本均不支持聚类分析。
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.SQLServer.2012.DBEngine.StopClusteredService" Target="SQL2012Core!Microsoft.SQLServer.2012.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"]/ServiceClusterName$" /offline</CommandLine>
<TimeoutSeconds>300</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</WriteAction>
</Task>