Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS Column Transformation Editor formatting column to 2 decimal places where database field is of type Float

$
0
0

Greetings,

I'm querying if i convert the source column from a flat file, of which I've changed
the datatype from float to Numeric [DT_Numeric] where the destination SQL
column is of type float to be rounded to 2 decimal places.

Within the Transformation editor the data type I believe can't be changed from
Float[DT_R4] as the destination SQL database column is float.

I was unable to cast the value in the Expression column and have tried using the
Round function.

e.g. (ColumnA < 0.25 || ColumnA > 1) ? 1: ROUND (ColumnA,2)

Is it possible to save down to 2 decimal places in the database for datatype float,
if so how?

Thanks.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>