Administering SQL Server

Managing Events

You can forward all Microsoft® SQL Server™ event messages that meet or exceed a specific error severity level to one instance of SQL Server. The forwarding server is a dedicated server that can also be a master server. You can use event-forwarding to enable centralized alert management for a group of servers. In this way, you can reduce the workload on heavily used servers.

In a multiserver environment, it is recommended that you designate the master server as the alerts management server.

Advantages

Advantages of setting up an alerts management server include:

Disadvantages

Disadvantages of setting up an alerts management server include:

Guidelines

When configuring event forwarding, follow these guidelines:

If a locally defined alert is disabled and an event occurs that would have caused the alert to fire, the event is forwarded to the alerts-forwarding server (if it satisfies the alert forwarding condition). This allows local overrides (alerts defined locally that are also defined at the alerts forwarding server) to be turned off and on as needed by the user at the local site. You can also request that events always be forwarded, even if they are handled by local alerts.

To designate an events forwarding server

Enterprise Manager

Enterprise Manager

SQL-DMO

To define the response to an alert

Enterprise Manager

Enterprise Manager

Transact-SQL

SQL-DMO

Running Event-Triggered Jobs

You can define a job to be executed in response to an alert. For example, you can execute a job that corrects or further diagnoses a problem detected by the alert.

Note  Given that a job can raise an event, be careful not to create a recursive alert-job loop.

See Also

sysmessages