| title | Delete an Operator | Microsoft Docs | |||||||
|---|---|---|---|---|---|---|---|---|
| ms.custom | ||||||||
| ms.date | 03/06/2017 | |||||||
| ms.prod | sql-server-2014 | |||||||
| ms.reviewer | ||||||||
| ms.technology | ssms | |||||||
| ms.topic | conceptual | |||||||
| helpviewer_keywords |
|
|||||||
| ms.assetid | 2b7b8627-082d-4189-8584-abd3a9b604cf | |||||||
| author | stevestein | |||||||
| ms.author | sstein | |||||||
| manager | craigg |
This topic describes how to remove an operator so they no longer receive [!INCLUDEmsCoName] [!INCLUDEssNoVersion] Agent alert notifications in [!INCLUDEssCurrent] by using [!INCLUDEssManStudioFull] or [!INCLUDEtsql].
In This Topic
-
Before you begin:
-
To delete an operator, using:
When an operator is removed, all the notifications associated with the operator are also removed.
Members of the sysadmin fixed server role can delete operators.
-
In Object Explorer, click the plus sign to expand the server that contains the operator you want to delete.
-
Click the plus sign to expand SQL Server Agent.
-
Click the plus sign to expand the Operators folder.
-
Right-click the operator that you want to delete and select Delete.
-
In the Delete Object dialog box, make sure that the correct operator is selected, and then click OK. If you want another operator to receive the alerts and jobs sent to the deleted operator, check Reassign to and select an operator in the list.
-
In Object Explorer, connect to an instance of [!INCLUDEssDE].
-
On the Standard bar, click New Query.
-
Copy and paste the following example into the query window and click Execute.
-- deletes operator 'Test Operator' and reassigns all alerts and jobs sent to that operator to 'Fran??ois Ajenstat' USE msdb ; GO EXEC sp_delete_operator @name = 'Test Operator', @reassign_to_operator = 'Fran??ois Ajenstat'; GO
For more information, see sp_delete_operator (Transact-SQL).