sp_delete_alert (Transact-SQL)
Collapse the table of content
Expand the table of content

sp_delete_alert (Transact-SQL)


Applies To: SQL Server 2014, SQL Server 2016 Preview

Removes an alert.

Applies to: SQL Server (SQL Server 2008 through current version).

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)

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 ;

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

Community Additions

© 2015 Microsoft