SQL Flow Field Guide

sp_add_schedule

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

Creates a schedule that can be used by any number of jobs.

What changes

Input
Not stated in the Microsoft summary.
Output or change
Creates a schedule that can be used by any number of jobs.

Syntax at a glance

dbo.sp_add_schedule
    [ @schedule_name = ] N'schedule_name'
    [ , [ @enabled = ] enabled ]
    [ , [ @freq_type = ] freq_type ]
    [ , [ @freq_interval = ] freq_interval ]
    [ , [ @freq_subday_type = ] freq_subday_type ]
    [ , [ @freq_subday_interval = ] freq_subday_interval ]
    [ , [ @freq_relative_interval = ] freq_relative_interval ]
    [ , [ @freq_recurrence_factor = ] freq_recurrence_factor ]
    [ , [ @active_start_date = ] active_start_date ]
    [ , [ @active_end_date = ] active_end_date ]
    [ , [ @active_start_time = ] active_start_time ]
    [ , [ @active_end_time = ] active_end_time ]
    [ , [ @owner_login_name = ] N'owner_login_name' ]
    [ , [ @schedule_uid = ] 'schedule_uid' OUTPUT ]
    [ , [ @schedule_id = ] schedule_id OUTPUT ]
    [ , [ @originating_server = ] N'originating_server' ]
[ ; ]

Work example

Creates a schedule that can be used by any number of jobs.

Write a proposed call on paper. Name the target, required permission, expected change, and recovery step before any lab use.

Check your work What can this procedure change or start, and what permission does it need?

Open Microsoft Learn for full syntax, permissions, and details for your version.