다음을 통해 공유


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: