Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Data type conversion Issue Expand / Collapse
Author
Message
Posted Monday, April 1, 2013 7:38 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, April 19, 2013 2:23 PM
Points: 1, Visits: 1
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

1 00980.93 00990.82 00997.03 01000.00 99999.99

2 00990.82 00997.03 01000.00 99999.99 99999.99

3 00997.03 01000.00 99999.99 99999.99 99999.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

1 980.93 990.82 997.03 1000 99999.99

2 990.82 997.03 1000 99999.99 99999.99

3 997.03 1000 99999.99 99999.99 99999.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

1 980.93 990.82 997.03 0 99999.99

2 990.82 997.03 0 99999.99 99999.99

3 997.03 0 99999.99 99999.99 99999.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




Post #1437672
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse