View Information About an Alert (SQL Server Management Studio)

This topic describes how to view information about Microsoft SQL Server Agent alerts in SQL Server 2012 by using SQL Server Management Studio or Transact-SQL.

In This Topic

  • Before you begin:

    Security

  • To view information about an alert, using:

    SQL Server Management Studio

    Transact-SQL

Before You Begin

Security

Permissions

By default, members of the sysadmin fixed server role can view information about an alert. Other users must be granted the SQLAgentOperatorRole fixed database role in the msdb database.

Arrow icon used with Back to Top link [Top]

Using SQL Server Management Studio

To view information about an alert

  1. In Object Explorer, click the plus sign to expand the server where you want to view information about an alert.

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

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

  4. Right-click the alert that has the information you want to view and select Properties.

    For more information on the available options contained in the alert_name alert properties dialog box, see:

  5. When finished, click OK.

Arrow icon used with Back to Top link [Top]

Using Transact-SQL

To view information about an alert

  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.

    -- reports information about the Demo: Sev. 25 Errors alert
    -- This example assumes that the 'Demo: Sev. 25 Errors' alert exists.
    USE msdb ;
    GO
    
    EXEC sp_help_alert @alert_name = 'Demo: Sev. 25 Errors'
    GO
    

For more information, see sp_help_alert (Transact-SQL).

Arrow icon used with Back to Top link [Top]