devxlogo

Determine the Version and Build Information for Microsoft SQL Server

Determine the Version and Build Information for Microsoft SQL Server

Use the following query to determine the version and build information for Microsoft SQL Server:

select @@microsoftversion / 0x01000000 as version,     cast(cast(@@microsoftversion as binary(2)) as int) as build;

The query returns the version number will be 7 for SQL Server 7.0, 8 for SQL Server 2000, 9 for SQL Server 2005 and 10 for SQL Server 2008. To determine the service pack level and edition information, please refer to this Microsoft Knowledge Base article.

See also  Professionalism Starts in Your Inbox: Keys to Presenting Your Best Self in Email
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist