SQL Server instance information can be retrieved in number of different ways. Following T-SQL statement retrieves information such as Hostname, instance name, Server Edition (32 bit or 64 bit), ServicePack and cluster configuration from current SQL Server instance.
1 2 3 4 5 6 7 8 |
SELECT @@ServerName AS Server , SERVERPROPERTY('MachineName') as Host, SERVERPROPERTY('InstanceName') as Instance, SERVERPROPERTY('Edition') as Edition, SERVERPROPERTY('ProductLevel') as ProductLevel, Case SERVERPROPERTY('IsClustered') when 1 then 'CLUSTERED' else 'STANDALONE' end as ServerType, @@VERSION as VersionNumber |
Leave a Comment