停止 SQL Reporting Services 服务
Microsoft.SQLServer.2012.ReportingServices.StopService (Task)
停止 SQL Reporting Services 服务。
请注意,除了具有高级服务的 SQL Server Express 外,其他任何版本的 SQL Server Express 均不支持 SQL Server Reporting Services Windows 服务。
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.SQLServer.2012.ReportingServices.StopService" Target="SQL2012Core!Microsoft.SQLServer.2012.ReportingServices" Accessibility="Internal" Enabled="true" Remotable="false">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="System!System.CommandExecuter">
<ApplicationName/>
<WorkingDirectory/>
<CommandLine>net stop $Target/Property[Type="SQL!Microsoft.SQLServer.ReportingServices"]/ServiceName$ /y</CommandLine>
<TimeoutSeconds>300</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</WriteAction>
</Task>