You could do a couple of things. You could either disable the alert prior to maintenance starting. Another option, one we utilize here is to use a custom property called maintenance that is a yes/no flag. You could then add a condition to the alert that Maintenance is equal to no. From there, you can create two SQL jobs that run at these specific times that set the value to Yes prior to the start time, and sets the value back to no after the end time of your maintenance window. It's a bit time consuming to set up, but it allows for what you're trying to do.
↧