I am using a dts to bring over data from our as/400. In the file one field is a date and sometimes it contains an invalid date i.e. 0001-01-01. How do I go about converting it in the dts. Most of the time I don't need to because its a valid date but every once in a awhile theres an invalid date. If I understand correctly sql server won't accept a date of 0001-01-01.
Here's something similiar to the select statment I'm using in my dts. What I would like to do is if the datefield is 0001-01-01 to default it to 1900-01-01 otherwise if its fine just bring it across.
Example
Select field1, field 2, datefield from ipledgr
Here's something similiar to the select statment I'm using in my dts. What I would like to do is if the datefield is 0001-01-01 to default it to 1900-01-01 otherwise if its fine just bring it across.
Example
Select field1, field 2, datefield from ipledgr