How to get the name of user machines connected to one sql server instance in a clustered environment ?

  • I have a sql server clustered environment. I am using host_name() function to retrieve the user's machine name.

    But it is giving only the server name in return. Is it because it is a clustered environment ? Any solution for this ?

  • Very strange...

    Have you tried this:

    select hostname from master.dbo.sysprocesses where spid = @@spid

    Does it return the same?

    -- Gianluca Sartori

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

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