What SQL Server version do I have?
Run this on the instance you plan to patch. The important value for this page is `ProductVersion`, because that is the build number you compare with the CU and GDR rows.
Check the installed SQL Server build
T-SQL · 5 lines
ProductVersion
The exact build number. Compare this with the latest CU, GDR, or CU+GDR build listed on this page.
ProductLevel
The broad release level, such as RTM or a service pack. It is useful context, but it is not enough by itself.
ProductUpdateLevel
The CU or GDR label SQL Server reports for the installed build when available.
Edition
The installed edition. Check this before patching because licensing, features, and HA patterns can change rollout risk.