| description | @@LANGUAGE (Transact-SQL) | ||||
|---|---|---|---|---|---|
| title | @@LANGUAGE (Transact-SQL) | Microsoft Docs | ||||
| ms.custom | |||||
| ms.date | 09/18/2017 | ||||
| ms.prod | sql | ||||
| ms.prod_service | database-engine, sql-database, sql-data-warehouse, pdw | ||||
| ms.reviewer | |||||
| ms.technology | t-sql | ||||
| ms.topic | reference | ||||
| f1_keywords |
|
||||
| dev_langs |
|
||||
| helpviewer_keywords |
|
||||
| ms.assetid | 3e13b477-7dfa-4da6-9948-da2050d42527 | ||||
| author | cawrites | ||||
| ms.author | chadam | ||||
| monikerRange | >=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current |
[!INCLUDE sql-asdb-asdbmi-asa-pdw]
Returns the name of the language currently being used.
Transact-SQL Syntax Conventions
@@LANGUAGE
[!INCLUDEsql-server-tsql-previous-offline-documentation]
nvarchar
To view information about language settings, including valid official language names, run sp_helplanguage without a parameter specified.
The following example returns the language for the current session.
SELECT @@LANGUAGE AS 'Language Name'; [!INCLUDEssResult]
Language Name
------------------------------
us_english
Configuration Functions (Transact-SQL)
SET LANGUAGE (Transact-SQL)
sp_helplanguage (Transact-SQL)