SSIS Excel Data Import - Mixed data type in Rows

后端 未结 1 1683
后悔当初
后悔当初 2021-01-25 16:09

I am trying to import excel data using SSIS pkg but it is changing data type and converting to some other format with decimal.

I pull data from a set range

Exam

1条回答
  •  梦毁少年i
    2021-01-25 16:26

    You need to use a Derived Column transformation in your dataflow task between the Excel spreadsheet and the database:

    Excel file, I know you say your spreadsheet is showing 1.2 but I can't see what's in the cell, so it does look like the larger value is what is held in the cell:

    Derived transformation task, rounds the value (divided by 100000) to 1 decimal place, replacing the column value:

    Resulting database entry, this column's datatype is set to DECIMAL(8,1) or however many preceeding digits you need):

    Hope that helps

    0 讨论(0)
提交回复
热议问题