Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
sp_delete_notification (Transact-SQL)
Collapse the table of content
Expand the table of content

sp_delete_notification (Transact-SQL)

Removes a SQL Server Agent notification definition for a specific alert and operator.

     [ @alert_name = ] 'alert' , 
     [ @operator_name = ] 'operator' 

[ @alert_name = ] 'alert'

The name of the alert. alert is sysname, with no default.

[ @operator_name = ] 'operator'

The name of the operator. operator is sysname, with no default.

0 (success) or 1 (failure)

Removing a notification removes only the notification; the alert and the operator are left intact.

To run this stored procedure, users must be granted the sysadmin fixed server role.

The following example removes the notification sent to operator François Ajenstat when alert Test Alert occurs.

USE msdb ;

EXEC dbo.sp_delete_notification
    @alert_name = 'Test Alert',
    @operator_name = 'François Ajenstat' ;

Community Additions

© 2015 Microsoft