Events
Apr 8, 3 PM - May 28, 7 AM
Sharpen your AI skills and enter the sweepstakes to win a free Certification exam
Register now!This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to:
SQL Server
Removes a SQL Server Agent notification definition for a specific alert and operator.
Transact-SQL syntax conventions
sp_delete_notification
[ @alert_name = ] N'alert_name'
, [ @operator_name = ] N'operator_name'
[ ; ]
The name of the alert. @alert_name is sysname, with no default.
The name of the operator. @operator_name is sysname, with no default.
0
(success) or 1
(failure).
None.
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;
GO
EXEC dbo.sp_delete_notification
@alert_name = 'Test Alert',
@operator_name = 'François Ajenstat' ;
GO
Events
Apr 8, 3 PM - May 28, 7 AM
Sharpen your AI skills and enter the sweepstakes to win a free Certification exam
Register now!