AgentEnableDisable @Command (Formula Language)

Enables or disables the specified agent.

Syntax

@Command( [AgentEnableDisable] ; agentName ; enableState )

Parameters

agentName

Text. Optional. The name of a scheduled agent defined for the currently selected database. If you omit this parameter, AgentEnableDisable applies to the currently selected agent.

enableState

Number ("1" or "0"). Optional. A value of "1" specifies that the agent is to be enabled. A value of "0" specifies that the agent is to be disabled. If you omit this parameter, AgentEnableDisable changes the agent's current state from enabled to disabled or from disabled to enabled.

Usage

You can omit both parameters when an Agents window has focus and a scheduled agent is selected. Otherwise, agentName is required.

This command does not work on the Web.