get the node name, not the virtual node name

  • Hi All

    Is there anyway to get the actual host name in T-SQL (or another way) on a cluster?

    SERVERPROPERTY('MachineName') or ('ServerName') get the virtual instance name not the node name.

    I got nodes N1,N2,N3,N4 and instances SQL1,SQL2 I want to run a query which tells me that SQL2 is running on N2 or SQL1 is running on N4 for example.

    Thanks

    Ant

  • Answered my own question I missed this one

    SELECT SERVERPROPERTY('ComputerNamePhysicalNetBIOS')

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

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