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

SQL code to list of all instances in a cluster

$
0
0

Hi,

I am in cluster 2 node (active- active) environment with 4 instances. Instance 1 and 4 are busy instance so, I don't want those two instances to run on a same node in any situation. I am trying to configure a mail alert if these two instances(1 and 4) failed over to same node, for that I want names of all SQL servers in a cluster using T-SQL code. 

Please provide me a SQL code to list of all instances in a cluster.

Regards

siddhardha



Viewing all articles
Browse latest Browse all 4532

Trending Articles



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