Skip to content

Latest commit

 

History

History
72 lines (56 loc) · 1.95 KB

File metadata and controls

72 lines (56 loc) · 1.95 KB
title sp_delete_alert (Transact-SQL) | Microsoft Docs
ms.custom
ms.date 03/06/2017
ms.prod sql-non-specified
ms.reviewer
ms.suite
ms.technology
database-engine
ms.tgt_pltfrm
ms.topic language-reference
f1_keywords
sp_delete_alert_TSQL
sp_delete_alert
dev_langs
TSQL
helpviewer_keywords
sp_delete_alert
ms.assetid a831315e-793d-41c4-8333-b324bb2bc614
caps.latest.revision 23
author JennieHubbard
ms.author jhubbard
manager jhubbard

sp_delete_alert (Transact-SQL)

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

Removes an alert.

Topic link icon Transact-SQL Syntax Conventions

Syntax

  
sp_delete_alert [ @name = ] 'name'  

Arguments

[ @name= ] 'name'
The name of the alert. name is sysname, with no default.

Return Code Values

0 (success) or 1 (failure)

Result Sets

None

Remarks

Removing an alert also removes any notifications associated with the alert.

Permissions

Only members of the sysadmin fixed server role can execute this procedure.

Examples

The following example removes an alert named Test Alert.

USE msdb ;  
GO  
  
EXEC dbo.sp_delete_alert  
   @name = N'Test Alert' ;  
GO  

See Also

sp_add_alert (Transact-SQL)
sp_help_alert (Transact-SQL)
System Stored Procedures (Transact-SQL)