SQL 에이전트 서비스 중지
Microsoft.SQLServer.2016.StopSQLAgent (Task)
SQL 에이전트 서비스 중지
SQL Server 에이전트 Windows 서비스는 모든 버전의 SQL Server Express에서 지원되지 않습니다.
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.SQLServer.2016.StopSQLAgent" Target="SQL2016Core!Microsoft.SQLServer.2016.Agent" Accessibility="Internal" Enabled="true" Remotable="false">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="System!System.CommandExecuter" RunAs="GPMP!Microsoft.SQLServer.TaskAccount">
<ApplicationName/>
<WorkingDirectory/>
<CommandLine>net stop $Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.Agent"]/ServiceName$</CommandLine>
<TimeoutSeconds>300</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</WriteAction>
</Task>