StepID Property (SQL-DMO)

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

Applies To

JobStep Object

Syntax

object.StepID [= value]

Part Description
object Expression that evaluates to an object in the Applies To list
value Long integer

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.

Data Type

Long

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetStepID(LPLONG pRetVal);

HRESULT SetStepID(long NewValue);

See Also
OnFailStep Property StartStepID Property
OnSuccessStep Property  

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.