sp_update_jobschedule (Transact-SQL)

THIS TOPIC APPLIES TO:yesSQL Server (starting with 2008)noAzure SQL DatabasenoAzure SQL Data Warehouse noParallel Data Warehouse

Changes the schedule settings for the specified job.

sp_update_jobschedule is provided for backward compatibility only.

Important

For more information about syntax used in earlier versions of Microsoft SQL Server, see the Transact-SQL Referencefor Microsoft SQL Server 2000.

||
|-|
|Applies to: SQL Server ( SQL Server 2008 through current version).|

Remarks

Job schedules can now be managed independently of jobs. To update a schedule, use sp_update_schedule.

Permissions

By default, members of the sysadmin fixed server role can execute this stored procedure. Other users must be granted one of the following SQL Server Agent fixed database roles in the msdb database:

  • SQLAgentUserRole

  • SQLAgentReaderRole

  • SQLAgentOperatorRole

    For details about the permissions of these roles, see SQL Server Agent Fixed Database Roles.

    Only members of sysadmin can use this stored procedure to update job schedules that are owned by other users.

See Also

SQL Server Agent Stored Procedures (Transact-SQL)
sp_update_schedule (Transact-SQL)