tags:

views:

26

answers:

1

I was about to import data from a table in MySQL to SQL SErver 2008 through SSIS. But I cant transfer due to Dates in the table. There are some data of datetime data type, like '0001-01-10' which doesnt support in SQL Server where years in date ranges from 1753 to 9999. So how do i solve this in MySQL queries ?

+1  A: 

If those dates are valid data, then there's no easy way to deal with that in SqlServer. Basically, a custom date handler is needed. A good-enough approximation might be achieved by separating the year into a single integer field and putting the month and day into a date field with a constant year. Every comparison would then be compound.

More likely—for most business applications—such dates are useless and should be cleaned up, or replaced by NULL values.

wallyk

related questions