August 12, 2008 at 3:57 am
I have a string column and need to map it with a decimal(12,2) column in SSIS package. Have tried using derived transformation and data convertor. but it gives an error of 'value could not be converted because of potential loss of data'.
any help in this regard will be appreciated.
thanks
August 12, 2008 at 7:01 am
Redirect the rows from the convert and see what the row is that is complaining. Probably find......it is not convertable 🙂
Cheers,CrispinI can't die, there are too many people who still have to meet me!It's not a bug, SQL just misunderstood me!
August 12, 2008 at 3:45 pm
There can be a few cases where the derived transformation can fail like the data can come as string instead of a number. So you can use and conditional operator for these cases and assign a null value or redirect all these rows to a error destination and check what is excatly going wrong in the data.
Then you can decide whether to insert a null value in the row or discard the rows.
August 12, 2008 at 7:59 pm
I'd question the database designer as to why decimal values were stored as strings to begin with.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 12, 2008 at 11:49 pm
Hey, i've seen a "all fields are varchar, just in case" database.
Cheers,CrispinI can't die, there are too many people who still have to meet me!It's not a bug, SQL just misunderstood me!
August 13, 2008 at 5:49 pm
Heh... did they also happen to have all the data in a single EAV table? 😛
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply