This documentation is archived and is not being maintained.

StepID Property

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

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


object
.StepID [= value]

object

An expression that evaluates to an object in the Applies To list

value

A long integer

Long

Read/write

HRESULT GetStepID(LPLONG pRetVal);
HRESULT SetStepID(long NewValue);

When using SQL Distributed Management Objects (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 it is used in properties controlling job step execution flow.

Show: