Export (0) Print
Expand All
Expand Minimize

sp_delete_alert (Transact-SQL)

Removes an alert.


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 ;
GO

EXEC dbo.sp_delete_alert
   @name = N'Test Alert' ;
GO
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft