Sql Job Failover, You should do the following tasks in case any failover happens using a SQL agent job.