Once you are responsible for an instance of SQL Server, whether it is an Enterprise edition or an Express edition, you should know some basic information about the instance. There are various reasons why this information may be necessary so it is important that you know how and where to find it.
Some of the basic information such as the instance name, SQL Server edition, SQL Server version, etc. can be found on the General Page of the Server Properties dialog box.
To access this dialog box, perform the following steps:
- Start SQL Server Management Studio (SSMS).
- Connect to your instance using the necessary Authentication.
- Right-click the server name in the Object Explorer View and select 'Properties' (see diagram below).
The Server properties dialog box has many pages, but in this post the main focus is the General Page (see diagram below).
Some of the instance information specified in the dialog box can also be returned by the SERVERPROPERTY function.
The syntax is:
SERVERPROPERTY ( propertyname )
Where propertyname is an expression that contains the property information that is returned.
You can get some basic information specified in the Server Properties dialog box by using the following values as propertyname:
- InstanceName - Returns name of the instance that you are connected to. (Null if the instance name is the default instance) .
- ProductVersion - Specifies the version of the instance of SQL Server.
- Edition - Returns the product edition of the instance of SQL Server.
There is some information returned by the function that does not exist in the dialog box, such as:
- ProductLevel - Specifies the level of the version of the instance of SQL Server.
- ResourceLastUpdateDateTime - Returns the date and time that the Resource database was last updated.
|Results from MSDN SERVERPROPERTY query|