We are using SQL Server 2012 AlwaysOn.
We are doing some testing, Like we created SQL job on Primary Replica and all other secondary replicas.
If any failover occur the job will run and send the report to aaa@company.com. Now everything is fine and the job is running for every 2hrs.
But my requirement is id don't want to schedule, as fail-over not happens always, how to modify this job , to run only after failover over.
I mean after failover job should run in all servers, as i said that we create this job in all servers and scheduled for every 2 hrs.