다음을 통해 공유


DeleteLevel Property

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

The DeleteLevel property controls post-execution processing for SQL Server Agent jobs.

구문

object
.DeleteLevel [=value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list.

  • value
    A long integer that specifies a job completion status as described in Settings.

Data Type

Long, enumerated

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetDeleteLevel(SQLDMO_COMPLETION_TYPE* pRetVal);
HRESULT SetDeleteLevel(SQLDMO_COMPLETION_TYPE NewValue);

Settings

Constant

Value

Description

SQLDMOComp_All

6

Deletes regardless of success or failure.

SQLDMOComp_Always

3

Deletes regardless of success or failure.

SQLDMOComp_Failure

2

Deletes on failed completion.

SQLDMOComp_None

0

The default. It ignores any completion status. It does not delete.

SQLDMOComp_Success

1

Deletes on successful completion.

주의

If directed, SQL Server Agent can delete a job definition when execution succeeds or fails. By default, jobs are not deleted when execution completes, regardless of the success or failure of the job.

Set the DeleteLevel property to control agent deletion of jobs after execution.

Applies To: