Monday, 20 May 2024

Find Sql Server Version, Product and Host details

Check Various SQL Server Instance Related Properties using  SERVERPROPERTY function

SELECT
 SERVERPROPERTY('MachineName') AS ComputerName,
 SERVERPROPERTY('ServerName') AS InstanceName,
 SERVERPROPERTY('Edition') AS Edition,
 SERVERPROPERTY('ProductVersion') AS ProductVersion,
 SERVERPROPERTY('ProductLevel') AS ProductLevel;
GO


No comments:

Post a Comment