Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 1.79 KB

File metadata and controls

47 lines (35 loc) · 1.79 KB
title sp_update_jobschedule (Transact-SQL)
description sp_update_jobschedule changes the schedule settings for the specified job in the SQL Server Agent service.
author markingmyname
ms.author maghan
ms.reviewer randolphwest, wiassaf
ms.date 06/23/2025
ms.service sql
ms.subservice system-objects
ms.topic reference
f1_keywords
sp_update_jobschedule_TSQL
sp_update_jobschedule
helpviewer_keywords
sp_update_jobschedule
dev_langs
TSQL
monikerRange >=sql-server-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current

sp_update_jobschedule (Transact-SQL)

[!INCLUDE sql-asdbmi]

Changes the schedule settings for the specified job in the [!INCLUDE ssnoversion-md] 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

[!INCLUDE msdb-execute-permissions]

Other users must be granted one of the following [!INCLUDE ssNoVersion] 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.

Related content