| title | @@VERSION (Transact-SQL) | Microsoft Docs | ||||
|---|---|---|---|---|---|
| ms.custom | |||||
| ms.date | 09/18/2017 | ||||
| ms.prod | sql-non-specified | ||||
| ms.reviewer | |||||
| ms.suite | |||||
| ms.technology |
|
||||
| ms.tgt_pltfrm | |||||
| ms.topic | language-reference | ||||
| f1_keywords |
|
||||
| dev_langs |
|
||||
| helpviewer_keywords |
|
||||
| ms.assetid | 385ba80e-7c28-41a5-9cdb-5648f3785983 | ||||
| caps.latest.revision | 40 | ||||
| author | BYHAM | ||||
| ms.author | rickbyh | ||||
| manager | jhubbard | ||||
| ms.workload | Active |
[!INCLUDEtsql-appliesto-ss2008-all_md]
Returns system and build information for the current installation of [!INCLUDEssNoVersion].
Transact-SQL Syntax Conventions
@@VERSION
nvarchar
The @@VERSION results are presented as one nvarchar string. You can use the SERVERPROPERTY (Transact-SQL) function to retrieve the individual property values.
For [!INCLUDEssNoVersion], the following information is returned.
-
[!INCLUDEssNoVersion] version
-
Processor architecture
-
[!INCLUDEssNoVersion] build date
-
Copyright statement
-
[!INCLUDEssNoVersion] edition
-
Operating system version
For [!INCLUDEssSDSfull], the following information is returned.
-
Edition- "Windows Azure SQL Database"
-
Product level- "(CTP)" or "(RTM)"
-
Product version
-
Build date
-
Copyright statement
A: Return the current version of [!INCLUDEssNoVersion]
The following example shows returning the version information for the current installation.
SELECT @@VERSION AS 'SQL Server Version';
B. Return the current version of [!INCLUDEssDW]
SELECT @@VERSION AS 'SQL Server PDW Version';