Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
@@LANGID (Transact-SQL)

@@LANGID (Transact-SQL)

 

Applies To: SQL Server 2014, SQL Server 2016 Preview

Returns the local language identifier (ID) of the language that is currently being used.

Applies to: SQL Server (SQL Server 2008 through current version), Azure SQL Database.

Topic link icon Transact-SQL Syntax Conventions


@@LANGID

smallint

To view information about language settings, including language ID numbers, run sp_helplanguage without a parameter specified.

The following example sets the language for the current session to Italian, and then uses @@LANGID to return the ID for Italian.

SET LANGUAGE 'Italian'
SELECT @@LANGID AS 'Language ID'

Here is the result set.

Changed language setting to Italiano.
Language ID
-----------
6          

Community Additions

ADD
Show:
© 2015 Microsoft