Usage of SERVERPROPERTY in SQL Server

SERVERPROPERTY is a system function in SQL Server that returns property details about the server instance, including the build version, collation, server name, instance name, edition presently installed, if it is clustered, product level, product version, etc.

Syntax:
SERVERPROPERTY ( ‘propertyname’ )

Example:
SELECT SERVERPROPERTY(‘productversion’),
SERVERPROPERTY (‘productlevel’),
SERVERPROPERTY (‘edition’),
@@VERSION

Hope you find this information useful.

One comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s