1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

Discuss in my forum

How To Create an Alert Using SQL Server Agent

By

How To Create an Alert Using SQL Server Agent
Microsoft Corporation
SQL Server allows you to automatically notify database administrators when unusual circumstances occur. This powerful alerting mechanism enables 24-hour monitoring of your database performance without staffing a 24-hour operations center.
Difficulty: Easy
Time Required: 15 minutes

Here's How:

  1. Open SQL Server Management Studio and connect to the database server where you would like to create the alert.
  2. Expand the SQL Server Agent folder by clicking once on the "+" icon to the left of the folder.
  3. Right-click on the Alerts folder and select "New Alert" from the pop-up menu.
  4. Type a descriptive name fro your alert in the Name textbox.
  5. Choose the type of alert from the drop-down menu. Your choices are SQL Server performance conditions (such as CPU load, free disk space, etc.), SQL Server events (such as fatal errors, syntax errors, hardware issues, etc.), and Windows Management Instrumention (WMI) events.
  6. Provide any alert-specific details requested by SQL Server, such as specific text included in the event report, parameters for performance condition alerts, etc.
  7. Click the "Response" icon in the New Alert window's "Select a page" pane.
  8. If you would like to execute a SQL Server Agent job when the alert occurs, click the "Execute job" checkbox and select a job from the drop-down menu.
  9. If you would like to notify database operator(s) when the alert occurs, click the "Notify operators" checkbox and then select the operator(s) and notification type(s) from the grid.
  10. Click OK to create the alert.

What You Need

  • SQL Server 2005 or later
  • SQL Server Management Studio
Related Video
Create a Black and White Effect in Adobe Photoshop
  1. About.com
  2. Technology
  3. Databases
  4. SQL Server
  5. How to Create an Alert Using SQL Server Agent

©2014 About.com. All rights reserved.