Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Data type conversion Issue


Data type conversion Issue

Author
Message
shajid.salih
shajid.salih
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search