次の方法で共有


EventlogLevel Property

この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションは修正することを検討してください。

The EventlogLevel property specifies the job completion status that causes an operating system log entry on job completion.

構文

object
.EventlogLevel [=value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list.
  • value
    Specifies a job completion status as described in Settings.

Settings

Value Description

SQLDMOComp_All

SQLDMOComp_Always.

SQLDMOComp_Always

Logs regardless of success or failure.

SQLDMOComp_Failure

Logs failed job completion.

SQLDMOComp_None

Ignores any completion status. It does not log completion.

SQLDMOComp_Success

Logs successful job completion.

Data Type

Long, enumerated

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetEventlogLevel(SQLDMO_COMPLETION_TYPE* pRetVal);
HRESULT SetEventlogLevel(SQLDMO_COMPLETION_TYPE NewValue);

解説

Set the EventlogLevel property to enable operating system log entries for the job.

Applies To:

Job Object