Overview SQL Server version numbers of editions with Service Pack:
See also more complete information at SQL Server versions or http://www.sqlsecurity.com/FAQs/SQLServerVersionDatabase/tabid/63/Default.aspx
Get the current installed version of SQL Server:
or nicer:
SELECT SERVERPROPERTY('Edition') AS Edition, SERVERPROPERTY('ProductVersion') AS ProductVersion, SERVERPROPERTY('ProductLevel') AS ProductLevel
shows result like: "9.00.3054.00, SP2, Developer Edition."
or e.g.
or e.g. select @@microsoftversion / 0x01000000, @@microsoftversion & 0xFFFF see also: http://support.microsoft.com/kb/321185/en-us
This article is also available in the following languages:
adicionado link ao Guia de Sobrevivencia do SQL Server