다음을 통해 공유


EmailLevel Property

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The EmailLevel property specifies the job completion status that causes an e-mail notification to a specified operator.

구문

object.EmailLevel [=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

Sends e-mail regardless of success or failure.

SQLDMOComp_Failure

Sends e-mail if the job failed to complete.

SQLDMOComp_None

Ignores any completion status. It does not send e-mail when the job completes.

SQLDMOComp_Success

Sends e-mail if the job completes successfully.

주의

To configure a SQL Server Agent job to notify an operator of job completion, set the OperatorToEmail property to the operator name, and then set the EmailLevel property to the required response.

Data Type

Long, enumerated

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetEmailLevel(SQLDMO_COMPLETION_TYPE* pRetVal);
HRESULT SetEmailLevel(SQLDMO_COMPLETION_TYPE NewValue);

Applies To: