SSIS:Issue with data from a csv file:

a 夏天 提交于 2019-12-02 02:13:56

问题


Issue with data from a CSV file: I downloaded some file in CSV with some values like this one: 1.21E+11, when the values are too long.

If I convert to XLS/XLSX and change the field to numeric, that fixes the issue, but I want to do something automatized.


回答1:


Try adding a derived column of type DT_R8 and use the following expression:

(DT_R8)[InputColumn]

As shown in the image below, i tested the following expression:

(DT_R8)"1.21E+11"

And the result was:

121000000000



来源:https://stackoverflow.com/questions/57807926/ssisissue-with-data-from-a-csv-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!