Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
First, please take a look at the below page to know the date and time type in of SQL Server 2008.
https://www.mssqltips.com/sqlservertip/1616/sql-server-2008-date-and-time-data-types/
datetime variables store 8-byte time and date values ranging from January 1, 1753 to December 31, 9999 with an accuracy of 3.33 milliseconds.
datetime2 variables use between 6-8 bytes to store dates and times between January 1, 0001 and December 31, 9999 with an accuracy of 100 nanoseconds.
So, you need to change the type of column from datetime to datetime2 in database to keep 0001-01-01 in target table.
If you can't change field type for some reason, you can set it to null if the date prior to January 1st, 1970. see a similar topic and get the solutions in
https://community.talend.com/t5/Design-and-Development/MySQL-gt-MsSQL-quot-zero-date-quot-problem/td...
Best regards
Shong