Professional Documents
Culture Documents
You can create a schedule for SQL Server Agent jobs in SQL Server 2016 by using SQL Server
Management Studio, Transact-SQL, or SQL Server Management Objects.
Security
Transact-SQL
1. In Object Explorer, connect to an instance of the SQL Server Database Engine, and then
expand that instance.
2. Expand SQL Server Agent, right-click Jobs, and select Manage Schedules.
5. If you do not want the schedule to take effect immediately after it has been created, clear
the Enabled check box.
o To start the job when the CPUs reach an idle condition, click Start whenever the
CPUs become idle.
o If you want a schedule to run repeatedly, click Recurring. To set the recurring
schedule, complete the Frequency, Daily Frequency, and Duration groups on
the dialog.
o If you want the schedule to run only one time, click One time. To set the One
time schedule, complete the One-time occurrence group on the dialog box.
Using Transact-SQL
To create a schedule
3. Copy and paste the following example into the query window and click Execute.
Use the JobSchedule class by using a programming language that you choose, such as Visual
Basic, Visual C#, or PowerShell. For more information, see SQL Server Management Objects
(SMO).