Question : size of csv file created from Package Vs Query Results

I created a Flat File using a package using the Execute SQL Task, and the file size was 400 MB.

Then I ran the same query in SSMS, and right clicked on the query results, and said 'save as' a csv file. But this file, even though has the same number of records, is 5 times the original file.

What makes a file to bloat up like that?

Any way to restrict the size of the csv file, created from the result set in SSMS.

Thanks

Answer : size of csv file created from Package Vs Query Results

There can be many reasons starting with the one that SSMS used to insert lots of blanks (spaces) in the results.
Random Solutions  
 
programming4us programming4us