Seeing Server Property Information with SERVERPROPERTY Function in SQL Server

Hello everyone,

In this article, I will give information about seeing server property information with the SERVERPROPERTY function in SQL Server.

In SQL Server, in some cases, we may want to obtain information about the properties of the server.

You can easily do this with the help of the code below.

SELECT SERVERPROPERTY('BuildClrVersion') AS BuildClrVersion,
       SERVERPROPERTY('Collation') AS Collation,
       SERVERPROPERTY('CollationID') AS CollationID,
       SERVERPROPERTY('ComparisonStyle') AS ComparisonStyle,
       SERVERPROPERTY('ComputerNamePhysicalNetBIOS') AS ComputerNamePhysicalNetBIOS,
       SERVERPROPERTY('Edition') AS Edition,
       SERVERPROPERTY('EditionID') AS EditionID,
       SERVERPROPERTY('EngineEdition') AS EngineEdition,
       SERVERPROPERTY('HadrManagerStatus') AS HadrManagerStatus,
       SERVERPROPERTY('InstanceDefaultDataPath') AS InstanceDefaultDataPath,
       SERVERPROPERTY('InstanceDefaultLogPath') AS InstanceDefaultLogPath,
       SERVERPROPERTY('InstanceName') AS InstanceName,
       SERVERPROPERTY('IsAdvancedAnalyticsInstalled') AS IsAdvancedAnalyticsInstalled,
       SERVERPROPERTY('IsClustered') AS IsClustered,
       SERVERPROPERTY('IsFullTextInstalled ') AS IsFullTextInstalled,
       SERVERPROPERTY('IsHadrEnabled') AS IsHadrEnabled,
       SERVERPROPERTY('IsIntegratedSecurityOnly') AS IsIntegratedSecurityOnly,
       SERVERPROPERTY('IsLocalDB') AS IsLocalDB,
       SERVERPROPERTY('IsPolyBaseInstalled') AS IsPolyBaseInstalled,
       SERVERPROPERTY('IsSingleUser') AS IsSingleUser,
       SERVERPROPERTY('IsXTPSupported') AS IsXTPSupported,
       SERVERPROPERTY('LCID') AS LCID,
       SERVERPROPERTY('LicenseType') AS LicenseType,
       SERVERPROPERTY('MachineName') AS MachineName,
       SERVERPROPERTY('NumLicenses') AS NumLicenses,
       SERVERPROPERTY('ProcessID') AS ProcessID,
       SERVERPROPERTY('ProductBuild') AS ProductBuild,
       SERVERPROPERTY('ProductBuildType') AS ProductBuildType,
       SERVERPROPERTY('ProductLevel') AS ProductLevel,
       SERVERPROPERTY('ProductMajorVersion') AS ProductMajorVersion,
       SERVERPROPERTY('ProductMinorVersion') AS ProductMinorVersion,
       SERVERPROPERTY('ProductUpdateLevel') AS ProductUpdateLevel,
       SERVERPROPERTY('ProductUpdateReference') AS ProductUpdateReference,
       SERVERPROPERTY('ProductVersion') AS ProductVersion,
       SERVERPROPERTY('ResourceLastUpdateDateTime') AS ResourceLastUpdateDateTime,
       SERVERPROPERTY('ResourceVersion') AS ResourceVersion,
       SERVERPROPERTY('ServerName') AS ServerName,
       SERVERPROPERTY('SqlCharSet') AS SqlCharSet,
       SERVERPROPERTY('SqlCharSetName') AS SqlCharSetName,
       SERVERPROPERTY('SqlSortOrder') AS SqlSortOrder,
       SERVERPROPERTY('SqlSortOrderName') AS SqlSortOrderName,
       SERVERPROPERTY('FilestreamShareName') AS FilestreamShareName,
       SERVERPROPERTY('FilestreamConfiguredLevel') AS FilestreamConfiguredLevel,
       SERVERPROPERTY('FilestreamEffectiveLevel') AS FilestreamEffectiveLevel;

When you run the code, you will get a result like the one below.

As you can see, the server feature information has arrived.

Good luck to everyone in business and life.

168 Views

Yavuz Selim Kart

I try to explain what I know in software and database. I am still improving myself by doing research on many programming languages. Apart from these, I am also interested in Graphic Design and Wordpress. I also have knowledge about SEO and Social media management. In short, I am a determined person who likes to work hard.

You may also like...

Don`t copy text!