The OutcomeTypes property controls job history filtering by completion status of a job.
object.OutcomeTypes [= value]
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
value | Long integer specifying a job completion status as described in Settings |
Constant | Value | Description |
---|---|---|
SQLDMOJobOutcome_Cancelled | 3 | Filter for jobs terminated at user direction. |
SQLDMOJobOutcome_Failed | 0 | Filter for jobs that failed completion. |
SQLDMOJobOutcome_InProgress | 4 | Filter for jobs currently running. |
SQLDMOJobOutcome_Succeeded | 1 | Filter for successfully completed jobs. |
SQLDMOJobOutcome_Unknown | 5 | Ignore any completion status. Do not use completion status as a filter criteria. |
Long, enumerated
Read/write
HRESULT GetOutcomeTypes(
SQLDMO_JOBOUTCOME_TYPE* pRetVal);
HRESULT SetOutcomeTypes(
SQLDMO_JOBOUTCOME_TYPE NewValue);