Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 453
  • Last Modified:

DATETIME default format

My Windows 2003 server is multilingual but set as french.
SQL server 2005 is english but default language is set to french.
My previous server was french windows2000 with french sql2000 and everything was ok.
I want that my default datetime is dd/mm/yyyy.
When in Management studio, I use criteria pane date works as dd/mm/yyyy. If I write directly in SQL date is mm/dd/yyyy. Delphi program is interpreted as mm/dd/yyyy also.

Can anybody help me to configure this server as dd/mm/yyyy all the time.
Regards.
0
seb24
Asked:
seb24
2 Solutions
 
Ved Prakash AgrawalDatabase Consultant/Performance ArchitectCommented:
you can tried to change into regional setting you can tried to configure.

I don't think so that you can change the permanant setting in sql server as dd/mm/yyyy.

you can you SET statement to use dd/mm/yyyy format
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
don't rely on default format, but convert strings/dates explicitely:

select convert(vachar(30), date_field, 120) ....

select convert(datetime, varchar_field, 120) ....

where 120 represents the format YYYY-MM-DD HH24:MM:SS
0
 
seb24Author Commented:
I have found by myself, I have to set language for SQL user account.
Now it's ok.

Regards.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now