HasSchedule Property
Cette fonctionnalité sera supprimée dans une prochaine version de Microsoft SQL Server. Évitez d'utiliser cette fonctionnalité dans de nouveaux travaux de développement, et prévoyez de modifier les applications qui utilisent actuellement cette fonctionnalité.
The HasSchedule property reports whether a schedule exists for a SQL Server Agent job.
Syntaxe
object
.HasSchedule
Parts
- object
An expression that evaluates to an object in the Applies To list
Data Type
Boolean
Modifiable
Read-only
Prototype (C/C++)
HRESULT GetHasSchedule(LPBOOL pRetVal);
Notes
If TRUE, the job has at least one schedule. Query the JobSchedules collection to evaluate which schedule is enabled for the job.
If FALSE, the job has no schedule. The JobSchedules collection is empty.