convert date columns in flat souce file to date

  • I have a flat source with a column format like date, format like 10/23/2011

    it will be imported to SQL table with data type date.

    In the flat source connection manager editor screen, I go to advance, set it up to use dt_dbdate.

    But I got an error when running the package, I got an error to convert the column.

    I guess it is probably there are a lot of blank values or null values in the flat source file, so what can I do to make the import to destination to if it is empty or null, make it null, other vise, convert it to date.

    Thanks.

  • You are getting conversion errors because your date format probably isn't correct.

    Check out the following topic:

    http://social.msdn.microsoft.com/forums/en-US/sqlintegrationservices/thread/65e1c7d2-5410-48d9-9bb1-964ea124d0d1/

    You can easily check for NULL values using the ISNULL function.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply