StartStepID Property

后续版本的 Microsoft SQL Server 将删除该功能。 请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。

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

语法

object.StartStepID [= value]

Parts

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

  • value
    A long integer that identifies an existing SQL Server Agent job step by user-specified identifier

Data Type

Long

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetStartStepID(LPLONG pRetVal);
HRESULT SetStartStepID(long NewValue);

注释

SQL Server Agent job steps are identified by a user-specified integer value. If no value is specified when SQL Distributed Management Objects (SQL-DMO) is used 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.

Applies To: