sp_delete_notification(Transact-SQL)

특정 경고 및 운영자에 대해 SQL Server 에이전트 알림 정의를 제거합니다.

구문

sp_delete_notification
     [ @alert_name = ] 'alert' , 
     [ @operator_name = ] 'operator' 

인수

[ @alert_name= ] 'alert'

경고의 이름입니다. alertsysname이며 기본값은 없습니다.

[ @operator_name= ] 'operator'

운영자의 이름입니다. operatorsysname이며 기본값은 없습니다.

반환 코드 값

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

결과 집합

없음

주의

알림을 제거하는 경우 알림만 제거되며 경고 및 운영자는 그대로 유지됩니다.

사용 권한

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

다음 예에서는 Test Alert 경고가 발생하는 경우 운영자 Fran?is Ajenstat에게 보낸 알림을 제거합니다.

USE msdb ;
GO

EXEC dbo.sp_delete_notification
    @alert_name = 'Test Alert',
    @operator_name = 'Fran?is Ajenstat' ;
GO

참고 항목

참조

sp_add_alert(Transact-SQL)
sp_add_notification(Transact-SQL)
sp_add_operator(Transact-SQL)
sp_delete_alert(Transact-SQL)
sp_help_alert(Transact-SQL)
sp_help_notification(Transact-SQL)
sp_help_operator(Transact-SQL)
sp_update_notification(Transact-SQL)
시스템 저장 프로시저(Transact-SQL)

도움말 및 정보

SQL Server 2005 지원 받기