StepID Property

SQL-DMO

SQL-DMO

StepID Property

The StepID property is a user-defined, long integer identifying a Microsoft® SQL Server™ 2000 Agent job step.

Applies To
JobStep Object
Syntax

object.StepID [= value]

Parts

object

Expression that evaluates to an object in the Applies To list

value

Long integer

Data Type

Long

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetStepID(LPLONG pRetVal);

HRESULT SetStepID(long NewValue);

Remarks

When using SQL-DMO to define the steps of a job, set StepID as part of job step creation. A value specified for StepID is used to define the first step executed when SQL Server Agent runs the job, and is used in properties controlling job step execution flow.

See Also

OnFailStep Property

StartStepID Property

OnSuccessStep Property