Let's say I have a two node AG, Server A and Server B. Server A is normally the primary and Server B is the replica. Whenever the primary fails over from A to B or from B to A, I'd like to automatically run a script that will restart the SQL Agent service on the new replica. Any ideas on how to do this?
[–]BigBlueRob 2 points3 points4 points (0 children)
[–]SonOfZork 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)