停止 SQL Reporting Services 服務

Microsoft.SQLServer.2008.ReportingServices.StopService (Task)

停止 SQL Reporting Services 服務。
請注意,除了 SQL Server Express with Advanced Services 以外,所有版本的 SQL Server Express 都不支援 SQL Server Reporting Services Windows 服務。

Element properties:

TargetMicrosoft.SQLServer.2008.ReportingServices
AccessibilityInternal
CategoryMaintenance
EnabledTrue
RemotableFalse
Timeout300

Member Modules:

ID Module Type TypeId RunAs 
WA WriteAction System.CommandExecuter Microsoft.SQLServer.SQLDefaultAccount

Source Code:

<Task ID="Microsoft.SQLServer.2008.ReportingServices.StopService" Target="SQL2008Core!Microsoft.SQLServer.2008.ReportingServices" Accessibility="Internal" Enabled="true" Remotable="false">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="System!System.CommandExecuter" RunAs="SQL!Microsoft.SQLServer.SQLDefaultAccount">
<ApplicationName/>
<WorkingDirectory/>
<CommandLine>net stop $Target/Property[Type="SQL!Microsoft.SQLServer.ReportingServices"]/ServiceName$ /y</CommandLine>
<TimeoutSeconds>300</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</WriteAction>
</Task>