HasStep Property
この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションは修正することを検討してください。
The HasStep property reports the presence of at least one job step for the job.
構文
object
.HasStep
Parts
- object
An expression that evaluates to an object in the Applies To list
Data Type
Boolean
Modifiable
Read-only
Prototype (C/C++)
HRESULT GetHasStep(LPBOOL pRetVal);
解説
If TRUE, the job has at least one step (that is, the JobSteps collection of the Job object contains at least one member) and may be available for execution.
If FALSE, the job does not have an execution target set.
SQL Server Agent jobs must have at least one job step and must be targeted to a server to be executable. Define and add JobStep objects to the JobSteps collection of a Job object to create job steps and alter the value of HasStep.