Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

preferred replica is not reflecting on Quering

$
0
0

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



Viewing all articles
Browse latest Browse all 4689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>