The StepID property is a user-defined, long integer identifying a SQL Server Agent job step.
object.StepID [= value]
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
value | Long integer |
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.
Long
Read/write
HRESULT GetStepID(LPLONG pRetVal);
HRESULT SetStepID(long NewValue);
OnFailStep Property | StartStepID Property |
OnSuccessStep Property |