sp_update_notification(Transact-SQL)

경고 알림의 알림 방법을 업데이트합니다.

항목 링크 아이콘 Transact-SQL 구문 표기 규칙

구문

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

인수

  • [ @alert_name =] 'alert'
    이 알림과 연결된 경고의 이름입니다. alert는 sysname이며 기본값은 없습니다.

  • [ @operator_name =] 'operator'
    경고가 발생할 경우 알림을 받을 운영자입니다. operator는 sysname이며 기본값은 없습니다.

  • [ @notification_method =] notification
    운영자에게 알림을 보내는 방법입니다. notification은 tinyint이고 기본값은 없으며 다음 값 중 하나 이상이 될 수 있습니다.

    설명

    1

    전자 메일

    2

    호출기

    4

    Net Send

    7

    모든 방법

반환 코드 값

0(성공) 또는 1(실패)

주의

sp_update_notificationmsdb 데이터베이스에서 실행되어야 합니다.

지정한 notification_method를 사용하여 필요한 주소 정보가 없는 운영자에 대한 알림을 업데이트할 수 있습니다. 전자 메일 메시지 또는 호출기 알림을 보내는 중에 실패하면 Microsoft SQL Server 에이전트 오류 로그에 실패가 보고됩니다.

사용 권한

이 저장 프로시저를 실행하려면 사용자가 sysadmin 고정 서버 역할을 부여받아야 합니다.

다음 예에서는 François Ajenstat에게 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

참고 항목

참조

sp_add_notification(Transact-SQL)

sp_delete_notification(Transact-SQL)

sp_help_notification(Transact-SQL)

시스템 저장 프로시저(Transact-SQL)