sp_update_notification (Transact-SQL)

Bir uyarı bildirimi bildirim yöntem güncelleştirir.

Topic link iconTransact-SQL sözdizimi kuralları

sp_update_notification
          [@alert_name =] 'alert' ,
     [@operator_name =] 'operator' ,
     [@notification_method =] notification

Bağımsız değişkenler

  • [ @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.

    Değer

    Açıklama

    1

    E-posta

    2

    Çağrı cihazı

    4

    net send

    7

    Tüm yöntemleri

Dönüş Kodu Değerleri

0 (başarılı) veya 1 (hata)

Remarks

sp_update_notification çalıştırılmalıdır.msdb veritabanıdır.

Bir bildirim için belirtilen'ı kullanarak gerekli adres bilgileri olan bir işleç Güncelleştir notification_method. Bir e-posta iletisindeki veya çağrı cihazı bildirim gönderirken bir hata ortaya çıkarsa, başarısızlık Microsoft SQL Server Agent hata günlüğüne bildirilir.

İzinler

Bu saklı yordamı çalıştırmak için , kullanıcılara verilmesi gereken sysadmin sabit sunucu rolü.

Örnekler

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