SQL Server: Find Current Language of the Server

Suppose you are working in an environment in which your server supports various languages
and you want to find out what is the current language of server.

You can use the following methods:

Method 1: Use system function @@language

select @@language

The system function @@language contains the name of the current language of the server

Method 2 : Use sys.syslanguages view

select name from sys.syslanguages
where langid=@@langid

The system function @@langid will have the id for current language

OUTPUT

sql-server-language


About The Author

Madhivanan,an MSc computer Science graduate from Chennai-India, works as a works as a Lead Subject Matter Expert at a company that simplifies BIG data. He started his career as a developer working with Visual Basic 6.0, SQL Server 2000 and Crystal Report 8. As years went by, he started working more on writing queries in SQL Server. He now has good level of knowledge in SQLServer, Oracle, MySQL and PostgreSQL as well. He is also one of the leading posters at www.sqlteam.com and a moderator at www.sql-server-performance.com. His T-sql blog is at http://beyondrelational.com/blogs/madhivanan

No comments: