Sign in with Microsoft
Sign in or create an account.
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.


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.


Original data


Expected output


Actual output



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

Cumulative Update 8 for SQL Server 2017

After you install this update, when you export a table by using the CSV format, you need to turn on the “Escape Qualifier" capability by setting its value to True.

The “Escape Qualifier” capability needs to be changed in SSDT for the saved SSIS package when you use the escaping behavior.

The following screenshot shows the details of the EscapeQualifier property:

Details of the EscapeQualifier property


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


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


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

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?

Thank you for your feedback!