sp_delete_alert (Transact-SQL)

 

THIS TOPIC APPLIES TO:yesSQL Server (starting with 2008)noAzure SQL DatabasenoAzure SQL Data Warehouse noParallel Data Warehouse

Removes an alert.

Topic link icon 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)

Community Additions

ADD
Show: