MSSQL Datetime snafu

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • akronymn
    New Member
    • Apr 2009
    • 1

    MSSQL Datetime snafu

    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

    Code:
    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
  • ck9663
    Recognized Expert Specialist
    • Jun 2007
    • 2878

    #2
    Here, read this...


    --- CK

    Comment

    • ck9663
      Recognized Expert Specialist
      • Jun 2007
      • 2878

      #3
      Here are more reading....stuf f..

      Searching Dates

      --- CK

      Comment

      Working...