Bewerken

Delen via


sp_update_jobschedule (Transact-SQL)

Applies to: SQL Server Azure SQL Managed Instance

Changes the schedule settings for the specified job in the SQL Server Agent service.

sp_update_jobschedule is provided for backward compatibility only.

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

Permissions

You can grant EXECUTE permissions on this procedure, but these permissions might be overridden during a SQL Server upgrade.

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.