Skip to content

Latest commit

 

History

History
65 lines (50 loc) · 1.95 KB

File metadata and controls

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

@@LANGUAGE (Transact-SQL)

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

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)