How to Check SQL Server Version and Edition Quickly?
Resolved SQL
ZE
Zane Evans
November 28, 2026
4 replies
109 views
Reviewed by moderators
3 participants

I took over a server and I do not know which SQL Server version and edition it uses. What is the fastest way to check?

Accepted answer
Marked as the solution to this question

Microsoft lists several methods. These three work in a minute:

1. SSMS Object Explorer. Connect to the instance and look at the version number in brackets after the server name.
2. Execute SELECT @@VERSION in a query window. It returns one text line with the version, edition and operating system.
3. Execute SELECT SERVERPROPERTY('ProductVersion'), SERVERPROPERTY('ProductLevel'), SERVERPROPERTY('Edition'). It returns every value in its own column, which is easier for scripts.

If you cannot connect, open the first lines of the ERRORLOG file for that instance. The log header holds the version too.

The major number tells the release. For example, 15 is SQL Server 2019, 16 is SQL Server 2022 and 17 is SQL Server 2025.

How do I know which cumulative update is installed?

The build number in ProductVersion carries it. Compare the full number, like 16.0.4135.4, with the build list that Microsoft publishes for your version. ProductLevel shows RTM or the service pack. Check the build before every upgrade or restore, because a backup from a newer build cannot be restored on an older instance.

Server is 2019 Standard. Thanks.