Losing precision converting to decimal from string!


 

hello!

 

i´m having trouble converting values represented strings decimal data type.

i have flat file source, read currency rates represented without decimals.

before sending values sql server destination, want convert them represent correct values.

 

an example clarify:

 

if source contains column named "curr_rate" value 000092500 want send

to destination 9,2500.

 

so set dervied column component, converting value so:

 

((dt_numeric,9,4)curr_rate)/10000

 

my problems precision lost, , that´s sent destination table 9,0000.

 

how should go convert strings without losing precision in process?

 

thanks in advance!

convert decimal instead of numeric before division


SQL Server  >  SQL Server Integration Services



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........