StartStepID Property (SQL-DMO)

The StartStepID property identifies the first step executed when SQL Server Agent runs the referenced job.

Applies To

Job Object

Syntax

object.StartStepID [= value]

Part Description
object Expression that evaluates to an object in the Applies To list
value Long integer identifying an existing SQL Server Agent job step by user-specified identifier

Remarks

SQL Server Agent job steps are identified by a user-specified integer value. If no value is specified when using SQL-DMO to create a job, job steps are given an identifier value when the job is added to the Jobs collection of a JobServer object.

By default, the StartStepID value is the value of the StepID property in the first ordinal position of the JobSteps collection of the Job object.

Data Type

Long

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetStartStepID(LPLONG pRetVal);

HRESULT SetStartStepID(long NewValue);

  


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