how do we find out cluster environment?

  • Could you pls helpme out to find out the environment?

    Thank you in Advance 🙂

  • there's a SERVERPROPERTY function you can use, but do you need to discover that within a TSQL command?

    SELECT 'IsClustered', SERVERPROPERTY('IsClustered')

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • What exactly are you trying to find out?


    My blog: SQL Soldier[/url]
    SQL Server Best Practices:
    SQL Server Best Practices
    Twitter: @SQLSoldier
    My book: Pro SQL Server 2008 Mirroring[/url]
    Microsoft Certified Master: SQL Server, Data Platform MVP
    Database Engineer at BlueMountain Capital Management[/url]

  • SQL Server cluster related T-SQL queries which helps in finding SQL Server Cluster Nodes and their shared drives.

    1. Find name of the Node on which SQL Server Instance is Currently running

    SELECT SERVERPROPERTY('ComputerNamePhysicalNetBIOS') AS [CurrentNodeName]

    If the server is not cluster, then the above query returns the Host Name of the Server.

    2. Find SQL Server Cluster Nodes

    a. Using Function SELECT * FROM fn_virtualservernodes()

    b. Using DMVSELECT * FROM sys.dm_os_cluster_nodes

    3. Find SQL Server Cluster Shared Drives

    a. Using FunctionSELECT * FROM fn_servershareddrives()

    b. Using DMVSELECT * FROM sys.dm_io_cluster_shared_drives

    Not sure if this is what you are looking for.:-)

    But, please be specific about your needs while posting questions!!!!

    *******:cool:

    Sudhakar

    *******:cool:
    Sudhakar

Viewing 4 posts - 1 through 3 (of 3 total)

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