Recently I came across a situation where in I had to change the Email ID for all alerts and Mail Items on multiple servers. If you want to accomplish this through GUI it would be quite painful. After digging out I found out an easy way.
1. You can accomplish this by running the below set of query on individual servers.
2. You can accomplish this by running the below set of query on Central Management Server.
For how to configure Central Management Server(CMS) I will add a link soon or may in next post.
update msdb..sysoperators set email_address = ‘YourEmailID@YourDomain’ where name=’YourAlertName’
update a SET a.recipients=‘YourEmailID@YourDomain’
from msdb..sysmail_mailitems a
inner join msdb..sysmail_profile b
on a.profile_id = b.profile_id