SQL Script to check SQL Server cluster Nodes

Leave a comment (0) Go to comments

Following Script will help your to check SQL Server Cluster Nodes, which will query clustered server instance  and determine how many nodes exist in the SQL Server cluster

For SQL Server 2000

-- Returns the list of nodes on which the virtual server can run. Such information is useful in failover clustering environments.
-- If the current server instance is not a clustered server, fn_virtualservernodes returns an empty rowset.

SELECT * FROM ::fn_virtualservernodes()

For SQL Server 2005 /2008 / 2008 R2

-- determine the nodes on a SQL Server clustered server instance:
SELECT * FROM sys.dm_os_cluster_nodes

For SQL Server 2005/2008/2008 R2 and SQL Server 2011 (Denali)


--  VIEW SERVER STATE permission are required to execute this function
-- current server instance is not a clustered server, fn_virtualservernodes returns an empty rowset.
SELECT * FROM fn_virtualservernodes()
EOF - SQL Script to check SQL Server cluster Nodes, SQL Server 2012 , 2008 R2 , 2008 , 2005 , 2000

Leave a Reply

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


*


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.