Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set Language not working...

Status
Not open for further replies.

Sivagami

Programmer
Dec 11, 2000
14
0
0
US
I changed my session language using
SET LANGUAGE SPANISH
but it does not help retrieving the correct date/time format. The output when I do
select getdate() is 2003-01-06 15:28:18.530.
How do I change this ? Even
SET DATEFORMAT mdy
does not help.

Thanks,
Shiva.


 
Set Language and Set DATEFORMAT only affect entering of dates not the display of dates. If you want dates to display in a particular format, you'll have to use Convert and choose the appropriate datetime style. See Cast and Convert in SQL BOL. You may also want to review the information on the following page.

Terry L. Broadbent - DBA
SQL Server Page:
If you want to get the best answer for your question read faq183-874.
 
Thanks for the reply Terry.
My SYSMESSAGES table has entries in just 1 language. If I want to have other languages too, would you be knowing where can I get them and does the server need any additional configuration for that ?

Thanks,
Shiva.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top