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.