Hello All,
Seeing a strange issue, when i tried to change Prefered replica from Secondary to Primary, and onrunning below query it is showing 0 on both the servers. i tried to refevert the change back to secondary still same issue. In UI it reflects, howeve when i try to query it shows 0 instead of 1
restarted SQL Services still same
SELECT d.database_name,
sys.fn_hadr_backup_is_preferred_replica (d.database_name) AS IsPreferredBackupReplicaNow
FROM sys.availability_databases_cluster d
not sure if iam missing any other checks.
SQL Version: 12.0.5522
Thanks in Advance