By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,888 Members | 656 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,888 IT Pros & Developers. It's quick & easy.

MSSQL Datetime snafu

P: 1
I have an mssql database that I need to migrate to mysql. For some reason though any queries to any columns of type datetime are returned in French in the following format:

7/avr/2004 14:00

This also includes all the text of an SQL dump which not surprisingly makes mysql unable to read the dump from the MSSQL db. I've checked that my windows regional setting is set to English. I'm at a loss as to why this is happening or how to fix it. I just need them to be in mdy h:m:s format. One interesting thing I've noticed also is that if I look at the tables via the MSSQL Server Manager the dates are displayed as mdy h:m:s. Also I've tried doing

Expand|Select|Wrap|Line Numbers
  1. SP_DEFAULTLANGUAGE @loginame = username, @LANGUAGE = english
and even after this I still get the following results:

-If I connect via PHP and then query the database I get the French dates.
-When I run the sqlDump program it connects to the database and all the dates in the dump are in the French format.
-If I run SQL Server Manager and do a query with its query editor I get back the dates in the expected 2004-03-10 10:45:00 format.

Thanks for any help, I'm totally stumped! -Adam
Apr 22 '09 #1
Share this Question
Share on Google+
2 Replies

Expert 2.5K+
P: 2,878
Here, read this...

--- CK
Apr 24 '09 #2

Expert 2.5K+
P: 2,878
Here are more reading....stuff..

Searching Dates

--- CK
Apr 24 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.