Change an Operator's Availability

This topic describes how to change an operator's schedule for receiving alert notifications in SQL Server 2012 by using SQL Server Management Studio or Transact-SQL.

In This Topic

  • Before you begin:

    Security

  • To change an operator's availability, using:

    SQL Server Management Studio

    Transact-SQL

Before You Begin

Security

Permissions

Only members of the sysadmin fixed server role can edit operators.

Arrow icon used with Back to Top link [Top]

Using SQL Server Management Studio

To change an operator's availability

  1. In Object Explorer, click the plus sign to expand server that contains the operator that you want to enable or disable.

  2. Click the plus sign to expand SQL Server Agent.

  3. Click the plus sign to expand the Operators folder.

  4. Right-click the operator that you want to enable or disable and select Properties, then click the General tab.

  5. In the operator_name Properties dialog box, select or clear the Enabled check box.

  6. Click OK.

Arrow icon used with Back to Top link [Top]

Using Transact-SQL

To change an operator's availability

  1. In Object Explorer, connect to an instance of Database Engine.

  2. On the Standard bar, click New Query.

  3. 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).

Arrow icon used with Back to Top link [Top]