Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Preserving Numeric Data Type while writing to CSV output

$
0
0

Hi,

In my dataflow on a high level I am reading the data from Oracle and send the output to a flat file (.csv).

There is a particular column that has a Data type of Number (12,5) in Oracle. SSIS is implicitly converting it into DW_STR.

For this particular column there is no business requirement for any sort of Transformations, it just simply writes the data out to the .csv file.

However when writing to the .CSV file, the data type changes to String (Format -General if you open in Excel). I am required to keep the format as Numeric. I have tried a bunch of things including using implicit data conversion (to convert to Number/Decimal), editing the metadata to change the data. However nothing seems to work. There are other similar columns in the database that I am able to write as Number to the .csv file using the DT_R8 datatype. However for this particular column it does not work. 

Any pointers?


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>