Question : How to  use T-SQL to discover which node the SQL instance is running on?

Hi All,
hoe to use SERVERPROPERTY,  T-SQL to discover which node the SQL instance is running on?

Answer : How to  use T-SQL to discover which node the SQL instance is running on?

select SERVERPROPERTY('InstanceName')

Name of the instance to which the user is connected.

Returns NULL if the instance name is the default instance, if the input is not valid, or error.
Random Solutions  
 
programming4us programming4us