In this article, I will explain how to detect the current Cumulative Update / Service Pack installed on your SQL Server.
Detect the Current Cumulative Update / Service Pack Installed
You can use the ServerProperty as a system-defined function to return the SQL Server Instance information like the ProductLevel and ProductUpdateLevel.
The ProductLevel returns the version level of the SQL Server instance as the following.
- 'RTM': Original release version
- 'SPn': Service pack version
- 'CTPn',: Community Technology Preview version
Example
select SERVERPROPERTY('ProductLevel') as 'Product Level'.

The ProductUpdateLevel returns the update level of the current build as CUn where the CU=Cumulative Update.
Example
select SERVERPROPERTY('ProductUpdateLevel') as 'ProductUpdate Level'

Note
The ProductUpdateLevel is available in the SQL Server 2012 through the current version in updates beginning in late 2015.
For more details, check the T-SQL: Get SQL Server Instance Information Using SERVERPROPERTY
Below, we will show how to detect the current Cumulative Update / Service Pack in case the current version doesn't support the ProductUpdateLevel.
Get the current SQL Server Version
You have multiple ways to get the current SQL Server version.
Using SQL Server Management Studio
- Open SQL Server Management Studio > Connect to SQL Server.
- Right-click on Server Name > Properties.
- In the "General" section, check the Version field number.






Join the conversation! Your thoughts help the community grow.