I have problem. I have script with more insert where is datetime in format ‘DD.MM.YYYY’.
Problem is that server understand it as ‘MM.DD.YYYY’, so half of dates import with wrong value and half of dates do error.
Is any simple way how to say server that what is correct format?
I know that in past, if I worked with Oracle, I solve it by to_date function where I could specify format.
Using something like this should work:
From here:
http://anubhavg.wordpress.com/2009/06/11/how-to-format-datetime-date-in-sql-server-2005/