Hi,
We have SQL Server 2012 implementation on windows server 2008 R2. We are using AlwaysOn funcationality and made two Availability Replicas (say Node1 and Node2). Both of them are running in seperate identical WM ware servers.
Current situation is:
* Let say Node1 = Primary node
and SQL Server Agent have number of jobs running on Node1 (with enable status).
and Node2 = Secondary node (all jobs with disable status)
Problem occurs after failover:
* Node2 becomes Primary node
we have store procedure that disable all SQL server agent jobs on Secondary node (which is now Node1) and enable all jobs on new primary node (which is now Node2).
BUT the SQL Server Agent jobs does not run on Node2 (now primary node), despite the fact that all these jobs are now enabled. UNLESS we restart the SQL Serve Agent.
Once we restart the SQL server agent on Node2, the jobs then start to run as per their schedule with problem.
Does anyone else have faced the face problem? Is it SQL server bug or we are missing some configuration here?
Best Regards,
Kashif Javed