How to check cluster config with T-SQL queries

  • What are the T-SQL queries used to get the complete information regarding the cluster on the SQL Server?

  • Most of the cluster information is available from the Windows cluster itself, What information do you require?

    -----------------------------------------------------------------------------------------------------------

    "Ya can't make an omelette without breaking just a few eggs" 😉

  • Following is a SQL command that you would want to run to check which node is presently active.

    select SERVERPROPERTY('ComputerNamePhysicalNetBIOS')

    and you can also confirm whether the instance is clustered by executing the following

    :

    select SERVERPROPERTY('IsClustered')

    There may be quite a few additional queries that may be specific only to a clustered instance but generally speaking SQL server is just riding on the windows cluster. To put it in to perspective, most (if not all) of the other parameters for SERVERPROPERTY would return similar result irrespective of the fact whether it is a clustered or a standalone instance,

    BTW starting with SQL Server 2008 a lot of additional and useful OS related information can be collected using the newly introduced DMVs so you may want to explore those DMVs as well.

    But having mentioned all this it is still windows information at the end of the day and the earlier post seem to suggest the same as well. It would be great if you can disclose the information that you are looking to find through TSQL.

  • Thanks a lot for your reply's

  • Perry Whittle (7/13/2012)


    What information do you require?

    ??

    -----------------------------------------------------------------------------------------------------------

    "Ya can't make an omelette without breaking just a few eggs" 😉

  • There is a lot Dos cmd command for Cluster management. So we can use them via xp_cmdshell.

    http://technet.microsoft.com/en-us/library/cc779044(v=ws.10).aspx

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply