The OnFailStep property identifies the SQL Server Agent job step executed after failure of the referenced step.
object.OnFailStep [= value]
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
value | Long integer specifying a job step by ordinal number |
On failure of a job step, SQL Server Agent can terminate the job (reporting success or failure) or, if the job has more than a single step, can attempt to execute the next step or another step in the job.
To direct job failure logic to a specific step
Long
Read/write
HRESULT GetOnFailStep(LPLONG pRetVal);
HRESULT SetOnFailStep(long NewValue);