ABS
ALL
AND
ANY
AVG
bit
COS
COT
DAY
EXP
GO
IN
LEN
LOG
MAX
MIN
NOT
OR
PI
SET
SIN
STR
SUM
TAN
USE
VAR
Expand Minimize
0 out of 2 rated this helpful - Rate this topic

@@LANGID

SQL Server 2000

Returns the local language identifier (ID) of the language currently in use.

Syntax

@@LANGID

Return Types

smallint

Remarks

To view information about language settings (including language ID numbers), run sp_helplanguage with no parameter specified.

Examples

This 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:

Language ID
--------------------
6

See Also

Configuration Functions

SET LANGUAGE

sp_helplanguage

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.