| 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 |
|
||
| ms.tgt_pltfrm | |||
| ms.topic | language-reference | ||
| f1_keywords |
|
||
| dev_langs |
|
||
| helpviewer_keywords |
|
||
| ms.assetid | a831315e-793d-41c4-8333-b324bb2bc614 | ||
| caps.latest.revision | 23 | ||
| author | JennieHubbard | ||
| ms.author | jhubbard | ||
| manager | jhubbard |
[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx_md]
Removes an alert.
Transact-SQL Syntax Conventions
sp_delete_alert [ @name = ] 'name'
[ @name= ] 'name'
The name of the alert. name is sysname, with no default.
0 (success) or 1 (failure)
None
Removing an alert also removes any notifications associated with the alert.
Only members of the sysadmin fixed server role can execute this procedure.
The following example removes an alert named Test Alert.
USE msdb ;
GO
EXEC dbo.sp_delete_alert
@name = N'Test Alert' ;
GO
sp_add_alert (Transact-SQL)
sp_help_alert (Transact-SQL)
System Stored Procedures (Transact-SQL)