Note
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Applies to:
SQL Server
Removes a SQL Server Agent notification definition for a specific alert and operator.
Transact-SQL syntax conventions
Syntax
sp_delete_notification
[ @alert_name = ] N'alert_name'
, [ @operator_name = ] N'operator_name'
[ ; ]
Arguments
[ @alert_name = ] N'alert_name'
The name of the alert. @alert_name is sysname, with no default.
[ @operator_name = ] N'operator_name'
The name of the operator. @operator_name is sysname, with no default.
Return code values
0 (success) or 1 (failure).
Result set
None.
Remarks
Removing a notification removes only the notification; the alert and the operator are left intact.
Permissions
To run this stored procedure, users must be granted the sysadmin fixed server role.
Examples
The following example removes the notification sent to operator François Ajenstat when alert Test Alert occurs.
USE msdb;
GO
EXECUTE dbo.sp_delete_notification
@alert_name = 'Test Alert',
@operator_name = 'François Ajenstat';
GO