Skip to content

Latest commit

 

History

History
60 lines (46 loc) · 2.89 KB

File metadata and controls

60 lines (46 loc) · 2.89 KB
title sp_delete_jobschedule (Transact-SQL) | Microsoft Docs
ms.custom
ms.date 08/09/2016
ms.prod sql-non-specified
ms.reviewer
ms.suite
ms.technology
database-engine
ms.tgt_pltfrm
ms.topic language-reference
f1_keywords
sp_delete_jobschedule
sp_delete_jobschedule_TSQL
dev_langs
TSQL
helpviewer_keywords
sp_delete_jobschedule
ms.assetid 82fbb48b-603a-4016-a7fb-1ce17fb76919
caps.latest.revision 38
author JennieHubbard
ms.author jhubbard
manager jhubbard

sp_delete_jobschedule (Transact-SQL)

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

Deletes a schedule for a job.

sp_delete_jobschedule is provided for backward compatibility only.

Remarks

Job schedules can now be managed independently of jobs. To remove a schedule from a job, use sp_detach_schedule. To delete a schedule, use sp_delete_schedule.

NOTE: sp_delete_jobschedule does not support schedules that are attached to multiple jobs. If an existing script calls sp_delete_jobschedule to remove a schedule that is attached to more than one job, the procedure returns an error.

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.

Members of the sysadmin role can delete any job schedule. Users who are not members of the sysadmin role can only delete job schedules that they own.

See Also

sp_delete_schedule (Transact-SQL)
sp_detach_schedule (Transact-SQL)
View or Modify Jobs
sp_add_schedule (Transact-SQL)
sp_help_jobschedule (Transact-SQL)
sp_update_jobschedule (Transact-SQL)
System Stored Procedures (Transact-SQL)