Server Language & dateformat

  • Hi Guys,

    how to view(via query) currently configured server language & dateformat in sqlserver 2005.

    thanks in advance.

    Cheers,

    Asan

  • select * from sys.syslanguages where langid = @@langid

  • thanks COldCoffee ..

    how come we know the language .. which has been configured.?

    I got it in msdn..

    DBCC USEROPTIONS

    for the above requirements.

  • The SERVERPROERTY function can give you some info on the server level:

    For example can give you collation information to know the language info.

    Hope this helps.

    select SERVERPROPERTY ('Collation') as 'Collation'

  • Asane, @@LangID gives u the language ID of the current session, which is nothing but the configured language of the server...sys.syslanguages will also retreive you the date format as well.. dbcc useroptions is also a nice find.. thanks 🙂

  • I'd like to thank bdba n coldcoffe for their support 😛

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply