다음을 통해 공유


RetryAttempts Property

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

The RetryAttempts property specifies a number of times SQL Server Agent attempts to execute the referenced job step before reporting step failure.

구문

object
.RetryAttempts [= value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list
  • value
    A long integer

Data Type

Long

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetRetryAttempts(LPLONG pRetVal);
HRESULT SetRetryAttempts(long NewValue);

주의

SQL Server Agent job steps are assigned simple logic determining job execution behavior on step success or failure.

If the job step completes successfully on any attempt numbered less than or equal to the value of the RetryAttempts property, job execution branches to follow the on-success action for the step. If execution attempts exceed the value of the RetryAttempts property, job execution branches to follow the on-failure action for the step.

If a job step fails and the step is flagged for retry, SQL Server Agent can pause between execution attempts. For more information, see RetryInterval Property.

Applies To:

JobStep Object