Interromper Serviço SQL Agent no Mecanismo de Banco de Dados
Microsoft.SQLServer.2005.StopSQLAgentFromDBEngineInstance (Task)
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.SQLServer.2005.StopSQLAgentFromDBEngineInstance" Target="SQL2005Core!Microsoft.SQLServer.2005.DBEngine" 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.DBEngine"]/AgentName$</CommandLine>
<TimeoutSeconds>300</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</WriteAction>
</Task>