Cleaning data from a file..in Control or Data flow step?

  • I have a flat file I want to bulk insert into a temp table. One of the source columns is a money column.

    The data in the original flat file is without decimal. 55015 is really 550.15

    So I want to take the column and divide by 100, I think I do this in SSIS on the Data Control tab of my package, using 'Data Conversion' Data Flow transformation task.

    yet not seeing how I can achieve my result.

    Thanks

  • You may have to do 2 things:

    1 - Data Conversion ( if your original field is coming in as an integer type this is where you cast it to a decimal type)

    2 - Derived Column ( this is where you do the divide by 100 )

    Ed

  • Hi Ed,

    Thanks I have the value coming in as a decimal format already (expecting to convert so I said might as well place in the data type it should be)

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply