问题
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