Skip to content

Latest commit

 

History

History
62 lines (48 loc) · 1.89 KB

language-transact-sql.md

File metadata and controls

62 lines (48 loc) · 1.89 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs monikerRange
@@LANGUAGE (Transact-SQL)
@@LANGUAGE (Transact-SQL)
markingmyname
maghan
09/18/2017
sql
t-sql
reference
@@LANGUAGE_TSQL
@@LANGUAGE
languages [SQL Server], current in use
@@LANGUAGE function
current language in use
names [SQL Server], language in use
TSQL
>= aps-pdw-2016 || = azuresqldb-current || = azure-sqldw-latest || >= sql-server-2016 || >= sql-server-linux-2017 || = azuresqldb-mi-current

@@LANGUAGE (Transact-SQL)

[!INCLUDE sql-asdb-asdbmi-asa-pdw]

Returns the name of the language currently being used.

:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions

Syntax

@@LANGUAGE  

Return Types

nvarchar

Remarks

To view information about language settings, including valid official language names, run sp_helplanguage without a parameter specified.

Examples

The following example returns the language for the current session.

SELECT @@LANGUAGE AS 'Language Name';  

[!INCLUDEssResult]

Language Name                   
------------------------------  
us_english                      

See Also

Configuration Functions (Transact-SQL)
SET LANGUAGE (Transact-SQL)
sp_helplanguage (Transact-SQL)