sp_update_notification (Transact-SQL)
Aktualizuje sposób powiadamiania alert powiadomienia.
sp_update_notification
[@alert_name =] 'alert' ,
[@operator_name =] 'operator' ,
[@notification_method =] notification
Argumenty
[ @alert_name =] 'alert'
The name of the alert associated with this notification.alert is sysname, with no default.[ @operator_name =] 'operator'
The operator who will be notified when the alert occurs.operator is sysname, with no default.[ @notification_method =] notification
The method by which the operator is notified.notificationis tinyint, with no default, and can be one or more of these values.Wartość
Description
1
Wiadomości e-mail
2
Pager
4
polecenie net send
7
Wszystkie metody
Wartości kodów powrotnych
0 (sukces) lub 1 (brak)
Remarks
sp_update_notification musi być uruchamiane msdb bazy danych.
Powiadomienie można aktualizować dla podmiot gospodarczy, który nie ma informacji adresowych niezbędne przy użyciu określonego notification_method. Jeżeli błąd wystąpi podczas wysyłania wiadomości e-mail lub pager powiadomienie, uszkodzenie jest zgłaszana w Agent Microsoft SQL Server dziennik błędów.
Uprawnienia
Aby wykonać tę procedura przechowywana, należy udzielić użytkownikom sysadmin ustalić roli serwera.
Przykłady
The following example modifies the notification method for notifications sent to François Ajenstatfor the alert Test Alert.
USE msdb ;
GO
EXEC dbo.sp_update_notification
@alert_name = N'Test Alert',
@operator_name = N'François Ajenstat',
@notification_method = 7;
GO