Skip to content

Latest commit

 

History

History
73 lines (59 loc) · 2.23 KB

File metadata and controls

73 lines (59 loc) · 2.23 KB

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.service: "" ms.component: "t-sql|functions" ms.reviewer: "" ms.suite: "sql" ms.technology:

  • "database-engine" ms.tgt_pltfrm: "" ms.topic: "language-reference" f1_keywords:
  • "@@LANGUAGE_TSQL"
  • "@@LANGUAGE" dev_langs:
  • "TSQL" helpviewer_keywords:
  • "languages [SQL Server], current in use"
  • "@@LANGUAGE function"
  • "current language in use"
  • "names [SQL Server], language in use" ms.assetid: 3e13b477-7dfa-4da6-9948-da2050d42527 caps.latest.revision: 21 author: "edmacauley" ms.author: "edmaca" manager: "craigg" ms.workload: "Inactive" monikerRange: ">= aps-pdw-2016 || = azuresqldb-current || = azure-sqldw-latest || >= sql-server-2016 || = sqlallproducts-allversions"

@@LANGUAGE (Transact-SQL)

[!INCLUDEtsql-appliesto-ss2008-all-md]

Returns the name of the language currently being used.

Topic link icon 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)