Updates the notification method of an alert notification.
sp_update_notification [@alert_name =] 'alert',
[@operator_name =] 'operator',
[@notification_method =] notification
Value | Description |
---|---|
1 | |
2 | Pager |
4 | net send |
0 (success) or 1 (failure)
None
sp_update_notification must be run from the msdb database.
You can update a notification for an operator who does not have the necessary address information using the specified notification_method. If a failure occurs when sending an e-mail message or pager notification, the failure is reported in the SQL Server Agent error log.
Only members of the sysadmin fixed server role can execute sp_update_notification.
This example modifies the notification method for notifications sent to stevenb for the alert Test Alert.
USE msdb
EXEC sp_update_notification 'Test Alert', 'stevenb', 7
sp_add_notification | sp_help_notification |
sp_delete_notification | System Stored Procedures |