The JobSchedule object exposes the attributes of a single SQL Server Agent executable job schedule.
SQL Server Agent jobs can be scheduled for execution by using SQL Server Agent. Scheduling jobs automates job execution when SQL Server Agent is enabled but jobs are not required to be scheduled. They can be executed on demand by a sufficiently privileged user. Jobs can have more than one active schedule and SQL Server Agent evaluates all schedules to determine when to run the job.
With the JobSchedule object, you can:
The Name property of a JobSchedule object can contain up to 100 characters. The value of the Name property must be unique within a job.
To schedule a SQL Server Agent job for execution by SQL Server Agent
BeginAlter Method | Refresh Method |
CancelAlter Method | Remove Method (Objects) |
DoAlter Method |
DateCreated Property | Name Property |
Enabled Property | ScheduleID Property |