sp_delete_operator (Transact-SQL)
Applies to:
SQL Server
Removes an operator.
Transact-SQL syntax conventions
Syntax
sp_delete_operator
[ @name = ] N'name'
[ , [ @reassign_to_operator = ] N'reassign_to_operator' ]
[ ; ]
Arguments
[ @name = ] N'name'
The name of the operator to delete. @name is sysname, with no default.
[ @reassign_to_operator = ] N'reassign_to_operator'
The name of an operator to whom the specified operator's alerts can be reassigned. @reassign_to_operator is sysname, with a default of NULL
.
Return code values
0
(success) or 1
(failure).
Result set
None.
Remarks
When an operator is removed, all the notifications associated with the operator are also removed.
Permissions
Members of the sysadmin fixed server role can execute sp_delete_operator
.
Examples
The following example deletes operator François Ajenstat
.
USE msdb;
GO
EXEC sp_delete_operator @name = 'François Ajenstat';
GO
Related content
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru