How SQL Server Version Numbers Work
A SQL Server build number has four parts, for example 15.0.2000.5:- Major version (15): identifies the product release. 15 is SQL Server 2019, 16 is SQL Server 2022, 17 is SQL Server 2025.
- Minor version (0): almost always 0. The notable exception is SQL Server 2008 R2, which is 10.50 rather than 10.0.
- Build (2000): goes up with each service pack, cumulative update (CU) or security update (GDR). This is the part that tells you the patch level.
- Revision (5): a further refinement used by Microsoft internally.
How to Find Your SQL Server Build
The quickest method is to run this in SQL Server Management Studio, Azure Data Studio or sqlcmd:SELECT @@VERSION;
That returns a text string including the build, edition and the Windows or Linux version it’s running on. For something cleaner that’s easier to use in scripts or reports, use SERVERPROPERTY:
SELECT
SERVERPROPERTY('ProductVersion') AS Build,
SERVERPROPERTY('ProductLevel') AS Level,
SERVERPROPERTY('ProductUpdateLevel') AS UpdateLevel,
SERVERPROPERTY('Edition') AS Edition;
ProductUpdateLevel shows the CU number directly (for example CU14), which saves you looking the build up. If you can’t connect to the instance, you can also check the file version of sqlservr.exe in the instance’s Binn folder, or look in the SQL Server error log, which records the build on its first line every time the service starts.
In PowerShell with the SqlServer module installed:
Invoke-Sqlcmd -ServerInstance "SQL01" -Query "SELECT SERVERPROPERTY('ProductVersion') AS Build"
SQL Server 2017 to 2025: RTM Builds
| Version | Major version | RTM build |
|---|---|---|
| SQL Server 2025 | 17 | 17.0.1000.7 |
| SQL Server 2022 | 16 | 16.0.1000.6 |
| SQL Server 2019 | 15 | 15.0.2000.5 |
| SQL Server 2017 | 14 | 14.0.1000.169 |
SQL Server 2008 to 2016: RTM and Service Pack Builds
| Version | Build |
|---|---|
| SQL Server 2016 RTM | 13.0.1601.5 |
| SQL Server 2016 SP1 | 13.0.4001.0 |
| SQL Server 2016 SP2 | 13.0.5026.0 |
| SQL Server 2016 SP3 | 13.0.6300.2 |
| SQL Server 2014 RTM | 12.0.2000.8 |
| SQL Server 2014 SP1 | 12.0.4100.1 |
| SQL Server 2014 SP2 | 12.0.5000.0 |
| SQL Server 2014 SP3 | 12.0.6024.0 |
| SQL Server 2012 RTM | 11.0.2100.60 |
| SQL Server 2012 SP1 | 11.0.3000.0 |
| SQL Server 2012 SP2 | 11.0.5058.0 |
| SQL Server 2012 SP3 | 11.0.6020.0 |
| SQL Server 2012 SP4 | 11.0.7001.0 |
| SQL Server 2008 R2 RTM | 10.50.1600.1 |
| SQL Server 2008 R2 SP1 | 10.50.2500.0 |
| SQL Server 2008 R2 SP2 | 10.50.4000.0 |
| SQL Server 2008 R2 SP3 | 10.50.6000.34 |
| SQL Server 2008 RTM | 10.0.1600.22 |
| SQL Server 2008 SP4 | 10.0.6000.29 |
Is Your Version Still Supported?
This is the other reason people look up their build. As of late 2026:- SQL Server 2008, 2008 R2, 2012 and 2014 are out of extended support. 2014 was the most recent to drop off, in July 2024.
- SQL Server 2016 reached the end of extended support on 14 July 2026. It no longer gets security updates unless you’ve bought Extended Security Updates.
- SQL Server 2017 is in extended support until October 2027, so security fixes only.
- SQL Server 2019 left mainstream support in February 2025 and is in extended support until January 2030.
- SQL Server 2022 and 2025 are in mainstream support and receive regular CUs.
Frequently Asked Questions
Why does my build number not appear in the tables?
You almost certainly have a cumulative update or security update installed. Look up the build on Microsoft’s build versions page for your major version, or run the SERVERPROPERTY query above to see the CU name directly.Is the SQL Server Management Studio version the same as the server version?
No. SSMS is a separate client tool with its own version numbers. Always check the build on the server itself.Does the build number differ between Windows and Linux?
The major version is the same, and CUs are released for both, but the exact build of a given CU can differ slightly between platforms.Related SQL Guides
If you work with Configuration Manager databases, our SCCM SQL and WQL query library and 30 useful SCCM SQL queries are good next stops, and our guide on building a custom SCCM report with SQL shows how to turn those queries into reports. Moving a System Center database to a new server? See our walkthrough on migrating the SCSM database to a new SQL Server.Gear We Recommend
A few general tech accessories worth having alongside this.
Browse our General Tech Accessories picks on AmazonAs an Amazon Associate, TechyGeeksHome earns from qualifying purchases.
Discover more from TechyGeeksHome
Subscribe to get the latest posts sent to your email.
Visitor Rating: 5 Stars