How to load Date columns in consistent manner

  • Hi,

    I am loading the table from Excel source using SSIS 2005.

    Excel contains one of the columns as Exp_Date and its examples values are

    10/09/2010 17:00:51

    11/09/2010 11:45:16

    11/09/2010 11:45:16

    13/09/2010 10:07:59

    13/09/2010 10:07:59

    13/09/2010 10:07:59

    14/09/2010 10:44:59

    15/09/2010 10:44:59

    16/09/2010 14:19:25

    In table, for some columns it is loading fine. But for some columns it is loading in an inconsistent manner, i.e. a date that should be loading as ‘10/09/2010’ is actually loading as ‘09/10/2010’.

    Please advise how to load the date column values into table as it is in Excel file.

    Regards

    SqlStud

  • sqlstud (1/16/2013)


    Hi,

    I am loading the table from Excel source using SSIS 2005.

    Excel contains one of the columns as Exp_Date and its examples values are

    10/09/2010 17:00:51

    11/09/2010 11:45:16

    11/09/2010 11:45:16

    13/09/2010 10:07:59

    13/09/2010 10:07:59

    13/09/2010 10:07:59

    14/09/2010 10:44:59

    15/09/2010 10:44:59

    16/09/2010 14:19:25

    In table, for some columns it is loading fine. But for some columns it is loading in an inconsistent manner, i.e. a date that should be loading as ‘10/09/2010’ is actually loading as ‘09/10/2010’.

    Please advise how to load the date column values into table as it is in Excel file.

    Regards

    SqlStud

    Which driver are you using? The built-in driver? Please post the connection string so we can see the properties? Post the Excel file as an attachment to this thread as well.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

  • You can import the data as a string and in the dataflow manipulate the string in a derived column transformation to put it into yyyymmdd format, and append that to the time portion.

    This is the universal standard for date string and will import nicely into your datetime column, of your destination.

    ----------------------------------------------------

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

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