次の方法で共有


AddStepToJob Method

この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。 新しい開発作業では、この機能の使用を避け、現在この機能を使用しているアプリケーションは修正するようにしてください。

The AddStepToJob method configures the referenced Microsoft SQL Server Agent job by appending the job step defined by the JobStep object specified.

構文

object.AddStepToJob(JobStep)

Parts

  • object
    Expression that evaluates to an object in the Applies To list.

  • JobStep
    Expression that evaluates to a JobStep object.

Prototype (C/C++)

HRESULT AddStepToJob(LPSQLDMOJOBSTEP pJobStep);

説明

SQL Server Agent automated task administration is configured by adding, removing, and controlling the execution logic of job steps within jobs.

When using SQL Distributed Management Objects (SQL-DMO), use the AddStepToJob method, or the Add method of the JobSteps collection, to specify additional steps for an administrative task automated in a SQL Server Agent job.

Applies to: