Export (0) Print
Expand All

AddStepToJob Method

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 AddStepToJob method configures the referenced Microsoft SQL Server Agent job by appending the job step defined by the JobStep object specified.

object.AddStepToJob(JobStep)

object

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

JobStep

Expression that evaluates to a JobStep object.

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft