Skip to content

Latest commit

 

History

History
59 lines (45 loc) · 2.3 KB

File metadata and controls

59 lines (45 loc) · 2.3 KB
title sp_update_jobschedule (Transact-SQL) | Microsoft Docs
ms.custom
ms.date 03/14/2017
ms.prod sql-non-specified
ms.reviewer
ms.suite
ms.technology
database-engine
ms.tgt_pltfrm
ms.topic language-reference
f1_keywords
sp_update_jobschedule_TSQL
sp_update_jobschedule
dev_langs
TSQL
helpviewer_keywords
sp_update_jobschedule
ms.assetid 4df02594-4cd1-49a9-8d97-37c44e4d5423
caps.latest.revision 31
author JennieHubbard
ms.author jhubbard
manager jhubbard

sp_update_jobschedule (Transact-SQL)

[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx_md]

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: [!INCLUDEssNoVersion] ([!INCLUDEssKatmai] 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 [!INCLUDEssNoVersion] 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)