다음을 통해 공유


RemoveAllJobSteps Method

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The RemoveAllJobSteps method removes all system records maintaining steps executed by the referenced SQL Server Agent job.

구문

object
.RemoveAllJobSteps(
)

Parts

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

Prototype (C/C++)

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.

Applies To: