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
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 faser vi ut GitHub Issues som tilbakemeldingsmekanisme for innhold, og erstatter det med et nytt system for tilbakemeldinger. Hvis du vil ha mer informasjon, kan du se:Send inn og vis tilbakemelding for