RetryInterval Property

SQL-DMO

SQL-DMO

RetryInterval Property

The RetryInterval property specifies a number of minutes that will elapse before SQL Server Agent attempts to execute a previously failing job step.

Applies To
JobStep Object
Syntax

object.RetryInterval [= value]

Parts

object

Expression that evaluates to an object in the Applies To list

value

Long integer that specifies a number of minutes

Data Type

Long

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetRetryInterval(LPLONG pRetVal);

HRESULT SetRetryInterval(long NewValue);

Remarks

The RetryInterval property is evaluated only for those job steps flagged for retry. Set the RetryAttempts property to force SQL Server Agent to attempt more than a single execution of a job step.

When the RetryInterval property is zero (default), SQL Server Agent will immediately execute a job step an additional time when the step has been flagged for retry and fails completion.