Exporting CSV cannot handle commas/quotes in strings! - by gift_of_seasons

Status : 

  Not Reproducible<br /><br />
		The product team could not reproduce this item with the description and steps provided.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 636080 Comments
Status Closed Workarounds
Type Bug Repros 2
Opened 1/14/2011 12:50:09 AM
Access Restriction Public


When saving 'select' result to csv file, SSMS does not handle commas/quotes in string values! It's bad.
Sign in to post a comment.
Posted by gift_of_seasons on 4/19/2011 at 6:05 AM
It's amazing... It works, but these options should be enabled by default.
Posted by Microsoft on 4/19/2011 at 3:43 AM

Greetings from the SQL Server Manageability team.

Thanks for writing in to Microsoft. We greatly value your feedback.

We have an option in SSMS which can take care of the issue reported by you, when data contains comma/quotes.

Right Click on TSQL Editor -> Query Options -> Results and check the option
"Quote strings containing list separators when saving .csv results".


Tools -> Options -> Query Results -> SQL Server -> Result to Grid
check the option "Quote strings containing list separators when saving .csv results"
(Effect will take place on TSQL editors that are opened after this option is selected)

In case you some other concern, feel free to reactivate this defect.

Thanks again for providing feedback and making SQL Server the greatest Database server.

Posted by gift_of_seasons on 3/24/2011 at 1:11 AM
If you cannot fix this, please remove this feature. Without correct handling of commas and quotes, it's almost useless to export CSV!