Data type conversion Issue

  • I am new to SSIS and is trying to load data from a flat file to Oracle DB using SSIS.

    I am facing a strange datatype issue when I try to load the data and data is not getting loaded as in the input.

    My Flat File Format - Defined Column_Year * as DT_NUMERIC (7,2)

    Col_Age Col_Year_1 Col_Year_2 Col_Year_3 Col_Year_4 Col_Year_5

    100980.93 00990.82 00997.0301000.00 99999.99

    200990.82 00997.0301000.00 99999.9999999.99

    300997.0301000.00 99999.9999999.9999999.99

    I am loading the data in to an Oracle Table 1 - Col_Year_* as NUMERIC (38,16)

    Col_Age Col_Year_1 Col_Year_2 Col_Year_3 Col_Year_4 Col_Year_5

    1980.93 990.82 997.031000 99999.99

    2990.82 997.031000 99999.9999999.99

    3997.031000 99999.9999999.9999999.99

    Note 1000.00 has been changed to 1000 and all zeroes in the integer part is ignored.

    Now Table 1 has been used to populate Table2 - Numeric (38,16)

    Col_Age Col_Year_1 Col_Year_2 Col_Year_3 Col_Year_4 Col_Year_5

    1980.93 990.82 997.030 99999.99

    2990.82 997.03 0 99999.9999999.99

    3997.030 99999.9999999.9999999.99

    In Table 2 Value of 1000.00 has been zeroed out.

    I dont understand Why the value gets lost in between the Data flow task.My mapping and everythin gis correct and Since data gets lost in each and every column where the value is 1000, I belive its with the Data type.

    I tried changing the datatype to String, Numeric etc in the Flat file; but the results where same,

    Can some one please help???

    Thanks

    Shajid

Viewing 0 posts

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