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

CSV destination - Text Qualify only when value contains comma?

$
0
0

I'm using SSIS 2008 to export data from an OLE DB source to a CSV flat file. In the flat file connection manager, I'm using comma (,) as my column delimiter. I'm required to enclose data within double-quotes ("), but ONLY when the source data contains valid commas not indicating a new column. When I specify a text qualifier in the connection manager, double-quotes get applied to ALL values. I can text qualify a specific column that is most likely to contain values with commas, but it still applies quotes to all values regardless of whether a comma exists.

Is there any way in SSIS to apply a text-qualifier selectively so that only values that contain commas get enclosed in double quotes?

Thanks.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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