KB4135137 - SSMS and SSDT do not escape double quotation marks when you export data as CSV

Symptoms

You export a table as a CSV file by using Microsoft SQL Server Management Studio (SSMS) or SQL Server Data Tools (SSDT). For example, you export a table into CSV format in a SQL Server Integration Services (SSIS) project.

If you select double quotation marks (") as the text qualifier, and if any records contain double quotation marks, the marks might not be escaped correctly in the output.

Example

Original data

big”data

Expected output

“big””data”

Actual output

“big"data”

Resolution

The fix for this problem is included in the following update for SQL Server:

Cumulative Update 8 for SQL Server 2017

About SQL Server builds

Each new build for SQL Server contains all the hotfixes and security fixes that were in the previous build. We recommend that you install the latest build for your version of SQL Server:

The latest build for SQL Server 2017

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

References

Learn about the standard terminology Microsoft uses to describe software updates.

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×