Job Outcome Constants (SQLDMO_JOBOUTCOME_TYPE)
This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
Job outcome constants specify an execution completion status for SQL Server Agent jobs.
Constant |
Value |
Description |
|---|---|---|
SQLDMOJobOutcome_Cancelled |
3 |
A user action canceled job execution. |
SQLDMOJobOutcome_Failed |
0 |
Execution failed. |
SQLDMOJobOutcome_InProgress |
4 |
The job or job step is currently running. |
SQLDMOJobOutcome_Succeeded |
1 |
Execution succeeded. |
SQLDMOJobOutcome_Unknown |
5 |
The execution state could not be determined. |