Find the SQL Server Cluster details

Scenario

cluster includes two or more physical servers, called nodes; identical configuration is recommended. One is identified as the active node, on which a SQL Server instance is running the production workload, and the other is a passive node, on which SQL Server is installed but not running. In this post, we have tried to share a few ways to gather information about any running SQL cluster setup.

How will you find whether the SQL Server is configured in a failover cluster?

Using TSQL query

Result (This returns a 0=NO or 1=YES)

How will you find the node that the SQL Server is currently running on?

Using TSQL query

Result

Find cluster nodes by querying a DMV

We can also find cluster nodes by querying a data management view (DMV), but this DMV doesn’t show which nodes are active.

Using DMV

Result

Find information from SERVERPROPERTY

We can also find Machine Name, Server Name & Instance Name by below SERVERPROPERTY

Using TSQL statement

Result

Find the SQL cluster details & status all together!

Using TSQL query

Result

Using Failover Cluster Manager GUI

Open Failover Cluster Manager and click on Roles. Then go to the bottom of the window and click on Resources. You will get the same cluster information as described in the below screenshot.

Failover Cluster Manager
Failover Cluster Manager

when you click on nodes, you will see all the nodes participated in the cluster.

Cluster Node status
Cluster Node status

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *