How to identify the cluster node using a SQL command ?

  • We have a SQL Server 2008 setup using failover clustering .

    I wanted to identify which machine the SQL Server instance is actually running on, using a SQL command, is there any way of doing this ?

    I was hoping to use something like a server property e.g.

    SELECT SERVERPROPERTY('MachineName'), however these all seem to return the virtual SQL Server name, rather than the underlying machine it is running on.

    Thanks,

    D

  • Try this:

    SELECT SERVERPROPERTY('ComputerNamePhysicalNetBIOS')

    -- Gianluca Sartori

Viewing 2 posts - 1 through 1 (of 1 total)

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