How to find out the Sql Server version and service pack
2008-04-02 14:08
656 查看
processor, build date, copyright info and the operating system of the
current SQL Server installation
SELECT @@VERSION as VERSION
returns
'Microsoft SQL Server 2005 - 9.00.3042.00 (Intel X86) Feb 9 2007
22:47:07 Copyright (c) 1988-2005 Microsoft Corporation Developer
Edition on Windows NT 6.0 (Build 6000: ) ' on my machine
SERVERPROPERTY displays information about the server instance
We can use the SERVERPROPERTY with the 'propertyname' to get information about the SQL SERVER instance.
For eg:
To get the product version, use :
SELECT SERVERPROPERTY('productversion') as ProductVersion
returns '9.00.3042.00' on my machine
To get the Service Pack information or the level of version, use :
SELECT SERVERPROPERTY ('productlevel') as Level
returns 'SP2' on my machine
To get the product edition, use :
SELECT SERVERPROPERTY('edition') as EDITION
returns 'Developer Edition' on my machine
Similary
you can retrieve the LicenseType, MachineName, Number of client
licenses on the current instances, servername and many more property
information about the current sql server instance.
Check a list of other properties over here.
相关文章推荐
- How to see all the application errors related to SQL Server and export them to a .csv file.
- Cannot connect to WMI provider.You do not have permission or the server is unreachable.Note that you can only manager SQL Server 2005 and later version with SQL Server Configuration Manager.Invalid namespace [0x8004100e]
- CodeSnip: How to Get Id of the Record Using ASP.NET and SQL Server 2000
- [转]How to find who is using / eating up the Virtual Address Space on your SQL Server
- How to Find the Self Service Related File Location and Versions
- How to Find the Self Service Related File Location and Versions
- How to Find the Self Service Related File Location and Versions
- How to find out why your account keeps getting locked with Windows Server, TMG and Webspy
- Error message when you try to install a SQL Server 2005 service pack or a SQL Server 2005 hotfix package: "Error 29528. The setup has encountered an unexpected error while Setting Internal Properties"
- Please read "Security" section of the manual to find out how to run mysqld as root!错误解决
- dbvis MySQL server version for the right syntax to use near 'OPTION SQL_SELECT_LIMIT=DEFAULT' at lin
- How to fix the issue that GEM_HOME and/or GEM_PATH not set issue for rvm in mac version 10.12
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- Unable to start the Domino 8.5 server as a service and run the Java Cont...
- How to recreate the msdb database in SQL Server 2005
- how to change the ruby and rails version
- How to Get First and Last Day of a Month in SQL Server
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for