The EventlogLevel property specifies the job completion status that causes an operating system log entry on job completion.
object.EventlogLevel [= value]
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
value | Specifies a job completion status |
Value | Description |
---|---|
SQLDMOComp_All | SQLDMOComp_Always. |
SQLDMOComp_Always | Log regardless of success or failure. |
SQLDMOComp_Failure | Log failed job completion. |
SQLDMOComp_None | Ignore any completion status. Do not log completion. |
SQLDMOComp_Success | Log successful job completion. |
Set EventlogLevel to enable operating system log entries for the job.
Long, enumerated
Read/write
HRESULT GetEventlogLevel(SQLDMO_COMPLETION_TYPE* pRetVal);
HRESULT SetEventlogLevel(SQLDMO_COMPLETION_TYPE NewValue);