We have 3 node always on cluster and the queries which I have return if the current node is primary or secondary. But I need to find out which instance is primary irrespective of where ever(Primary or Secondary) I run the query. Can someone help me with this?
Thanks