Finding Version in SQL Server

Hello everyone,

In this article, you will learn about learning version information in SQL Server.

You can learn your SQL Server version information by using the code below.

SELECT CAST(SUBSTRING(
                         CAST(SERVERPROPERTY('productversion') AS VARCHAR(20)),
                         1,
                         CHARINDEX('.', CAST(SERVERPROPERTY('productversion') AS VARCHAR(20))) - 1
                     ) AS INT);

When you run the above code, you will see the following result.

Finding Version in SQL Server

We have seen the number 15.

You can find out your version according to your number from the web address below.

https://docs.microsoft.com/en-us/troubleshoot/sql/general/determine-version-edition-update-level

Good luck to everyone in business and life.

168 Views

Yavuz Selim Kart

I try to explain what I know in software and database. I am still improving myself by doing research on many programming languages. Apart from these, I am also interested in Graphic Design and Wordpress. I also have knowledge about SEO and Social media management. In short, I am a determined person who likes to work hard.

You may also like...

Don`t copy text!