How to query SQL Server versions

Source: Internet
Author: User
Tags microsoft sql server 2005 management studio sql server management sql server management studio

There are two statements:

 
Select @ versiongo
 
Selectserverproperty ('productversion') as productversion, serverproperty ('productlevel') as productlevel, serverproperty ('version') as edition, serverproperty ('engineedition ') as engineedition; go
 
The following message is returned when you run the first entry: Microsoft SQL Server 2005-9.00.3042.00 (x64) Feb 10 2007 00:59:02 copyright (c) 1988-2005 Microsoft Corporation Standard Edition (64-bit) on Windows NT 6.0 (build 6001: Service Pack 1)
The following message is returned when the second message is run: 9.00.3042.00 SP2 Standard Edition (64-bit)
 
 
 
Note: The query result depends on the version of SQL Server Management studio in which you execute the statement.
For example, if you connect to an instance of SQL Server 2008 in ssms2005, the result of executing the preceding statement is still displayed as the version 2005.
 
 
 
Of course, you can also connect to the SQL instance and right-click to view the information.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.