Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SSMS Exports to CSV

$
0
0

Hey there, 

I have a query that shows all the data I need, formatted the way I need it when it shows up in the results grid in SQL Server Mgmt Studio.

I created a SSIS package that exports to a csv but the data gets formatted wrong. Commas have not been removed, so it creates problems when I want to use the csv somewhere else. 

i have tried opening the resulting files in NotePad, WordPad, and Excel and the data seems to get screwed up somewhere in the SSIS process.

Is it possible that some of the functions that I use in the query, such as CASE, SUBSTRING, and REPLACE are not being fully processed by the SSIS package, even though the query parsed successfully when I created it?

Thanks for any advice, 

Shawn


Viewing all articles
Browse latest Browse all 4871

Trending Articles



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