SSIS Flat File Destination Export data issue

一笑奈何 提交于 2019-12-13 00:52:30

问题


Am exporting data from a SQL procedure to flat file. My issue is i have a column called Test with data 1e2, 1e1, 1e3 ..... .When i export to flat file, data for this column looks like 1.00E+02,1.00E+01,1.00E+03...... . What should i do to get exact data into flat file from SQL proc. Any help is appreciated.Thanks.


回答1:


Make sure the column in your Flat File Connection Manager has DataType of string [DT_STR]. This will avoid the implicit conversion done on your column by SSIS. See the image below:




回答2:


This solved my issue,

Created a excel template with Test Column as text.

In SSIS, Created OLEDB Source, Data Conversion and Excel Destination tasks. In Data Conversion i converted Test Column to Unicode String DT_WSTR. I executed the package and it populated data into the template i created with 1e1,1e2...in Test column.



来源:https://stackoverflow.com/questions/33632551/ssis-flat-file-destination-export-data-issue

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