Change an Operator's Availability
Applies to: SQL Server Azure SQL Managed Instance
Important
On Azure SQL Managed Instance, most, but not all SQL Server Agent features are currently supported. See Azure SQL Managed Instance T-SQL differences from SQL Server for details.
This topic describes how to change an operator's schedule for receiving alert notifications in SQL Server by using SQL Server Management Studio or Transact-SQL.
Before You Begin
Security
Permissions
Only members of the sysadmin fixed server role can edit operators.
Using SQL Server Management Studio
To change an operator's availability
In Object Explorer, click the plus sign to expand server that contains the operator that you want to enable or disable.
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 enable or disable and select Properties, then click the General tab.
In the operator_nameProperties dialog box, select or clear the Enabled check box.
Click OK.
Using Transact-SQL
To change an operator's availability
In Object Explorer, connect to an instance of Database Engine.
On the Standard bar, click New Query.
Copy and paste the following example into the query window and click Execute.
-- disables the 'François Ajenstat' operator USE msdb ; GO EXEC dbo.sp_update_operator @name = N'François Ajenstat', @enabled = 0; GO
For more information, see sp_update_operator (Transact-SQL).
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for