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.
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
where langid=@@langid
The system function @@langid will have the id for current language
OUTPUT
No comments:
Post a Comment