Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20616

Re: How To "Disable All Actions" Programmatically (using script)

$
0
0

this method will allow you to further tweak by alerting to NPM Event log but NOT send emails...I've been looking for exactly this b/c I want to ensure emails don't flood but also that we don't miss anything critical.

 

DISABLE ALL EMAIL ALERTS

assumptions:

     all emails go out every day (this will make resetting easy)

     you are doing your work on weekend

 

-- SELECT * FROM ActionDefinitions

-- UDPATE ActionDefinitions set DOW='4'

WHERE

AlertDefID IN (SELECT AlertDefID FROM [dbo].[AlertDefinitions] where Enabled=1)

and ActionType = 'EMail'

 

 

RE-ENABLE ALL EMAIL ALERTS

 

-- SELECT * FROM ActionDefinitions

-- UDPATE ActionDefinitions set DOW='1,2,3,4,5,6,7'

WHERE

AlertDefID IN (SELECT AlertDefID FROM [dbo].[AlertDefinitions] where Enabled=1)

and ActionType = 'EMail'


Viewing all articles
Browse latest Browse all 20616

Trending Articles