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

Performing mathematical operations on data before importing into SQL using SSIS?

$
0
0

Hello, Is it possible to multiply a number of rows by a constant before importing into a SQL Server database using SSIS?

For example, I have a temperature table in my SQL database that  contains a decimal datatype (ie -10.5 would represent -10.5 degrees celsius). I have been given a flat file in which temperature data is present but, it is given in the following form -00105 (this is a string). After the flat file source imports the test file I have a data conversion block that converts -00105 to a decimal number (I am assuming this will transform -00105 to -105.00, although I haven't run this yet so not sure it will work)...Then I want to multiply this number by 0.1 to get the value of -10.5......what can i use to do this? Every single piece of temperature data needs to be multiplied by 0.1 before being imported into the database.

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>