How To Check SQL Server Version

For one of the requirements, my client asked me, “What is the SQL server version you are using?” Let me tell you there are four simple approaches to checking this.

Approach-1: Using SQL Server Management Studio Object Explorer

1. Open your SQL Server Management Studio and login using the required credentials.

2. You will find the SQL server version in the name of the Object Explorer, as shown in the screenshot below.

    how to find sql server version

    You can find the respective product names below based on your version number.

    check sql server version

    Check out How To Copy One Table To Another In SQL Server

    Approach-2: Using the Properties window

    1. Right-click on the object explorer and then select the Properties option.

    find sql server version

    2. On the Properties window, you will see the Version, as shown in the screenshot below.

    determine sql server version

    Check out: How to get table size in SQL Server

    Approach-3: Using @@VERSION

    You can also check the version of sql server using the query below.

    SELECT @@VERSION AS 'SQL Server Version'

    or

    SELECT @@VERSION

    After executing the above query, I got the expected output, as shown in the screenshot below.

    how to check sql server version using query

    You can also use the query below to retrieve the version number, as shown in the screenshot below.

    Select SERVERPROPERTY ( 'ProductVersion' ) as 'SQL Server Version'
    how to know sql server version

    Check out How To Truncate Table In SQL Server

    Approach-4: Using the SERVERPROPERTY method

    You can also get the version information from the error log file.

    1. Execute the below query to get the error file log path.

    Select SERVERPROPERTY ( 'ErrorLogFileName' ) as 'Error Log Path'

    After executing the query, you will get the path of your error log file, as shown in the screenshot below.

    how to find out sql server version

    Now, navigate to the same path on your PC and see the version in the screenshot below.

    how to tell sql server version

    Conclusion

    Knowing your SQL Server version is Crucial as it helps you troubleshoot issues and plan for the upgrades and updates accordingly. There are multiple ways to do this, as mentioned in this article; now it’s your choice which approach suits you.

    You may also like following the articles below.