Expand Minimize
This topic has not yet been rated - Rate this topic

RemoveAllJobSteps 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 RemoveAllJobSteps method removes all system records maintaining steps executed by the referenced SQL Server Agent job.


object
.RemoveAllJobSteps(
)
object

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

HRESULT RemoveAllJobSteps();

A SQL Server Agent job is enabled once it has at least one step and an execution target. Successful execution of the RemoveAllJobSteps method disables the referenced SQL Server Agent job, and SQL Distributed Management Objects (SQL-DMO) empties the JobSteps collection of the Job object used. To re-enable the referenced job using SQL-DMO, create JobStep objects and add them to the JobSteps collection of the Job object. For more information, see JobStep Object.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.