OnSuccessStep Property
Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.
The OnSuccessStep property identifies the SQL Server Agent job step executed after the success of the referenced step.
구문
object.OnSuccessStep [= value]
Parts
object
An expression that evaluates to an object in the Applies To listvalue
A long integer that specifies a job step by ordinal number
Data Type
Long
Modifiable
Read/write
Prototype (C/C++)
HRESULT GetOnSuccessStep(LPLONG pRetVal);
HRESULT SetOnSuccessStep(long NewValue);
주의
On success of a job step, SQL Server Agent can stop the job (reporting success or failure), or if the job has more than a single step, it can attempt to execute the next step or another step in the job.
To direct job success logic to a specific step
Set OnSuccessStep to indicate the job step that should execute.
Set the OnSuccessAction property to SQLDMOJobStepAction_/GotoStep.