How to script alerts using Transact-SQL (Enterprise Manager)

To script alerts using Transact-SQL

  1. Right-click Alerts; then click All Tasks/Script All Alerts.
  2. In the Generate SQL Script dialog box, in the File name box, enter a name for the script.
  3. Under File format, select:
  4. Under SQL generation options, select:
  5. Enter a T-SQL batch separator. Include the name of the job executed by the alert to have the alerts generated by the script reference their response jobs. The default is GO.

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.