Link to home
Start Free TrialLog in
Avatar of dedri
dedriFlag for United States of America

asked on

sql agent alerts

On my servers I wanted to configure the sql alerts. I used the script provided by BrentOzar from this website: http://www.brentozar.com/blitz/configure-sql-server-alerts/
The problem is that parameter @delay_between_responses=60 is set to 60 seconds, and I don't want to be flooded with emails every minute. Now I want to change this settings to 2hours.
Is there any automatic way to do this. I have a lot of sql servers and I don't want to do this mannualy alert by alert
Avatar of knightEknight
knightEknight
Flag of United States of America image

Can't you just change the value from 60 to 7200 in the script?

  @delay_between_responses=7200
Avatar of dedri

ASKER

executing the script will generate an error message because the alerts have been already created on servers.
What is the problem with the answers? Did they not work?

What you should probably do is create a nightly scheduled task that runs every night and can read/write to a central point. Then you don't have to touch the servers manually the next time. Just put a new command in the batch file.
ASKER CERTIFIED SOLUTION
Avatar of David Todd
David Todd
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial