# Bug in the CSV exporter

**URL:** <https://forums.toadworld.com/t/bug-in-the-csv-exporter/61947>\
**Category:** Toad for SQL Server\
**Created:** [November 24, 2026, 11:52pm UTC](https://forums.toadworld.com/t/bug-in-the-csv-exporter/61947 "2026-11-24T23:52:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bog](https://avatars.discourse-cdn.com/v4/letter/b/eada6e/32.png) [@bog](https://forums.toadworld.com/u/bog)\
**Post date:** [November 24, 2026, 11:52pm UTC](https://forums.toadworld.com/t/bug-in-the-csv-exporter/61947/1 "2026-11-24T23:52:35Z")

</div>

Toad for SQL Server - 26.2.0.44257 (64 bit)

Run this query:

select 'Str 1" str2 ' as [Value]

Export the result to csv using the quick export. The result is:

```auto
Value
"Str 1" str2 "

```

That's an invalid csv format. The double-quote in the value should have been escaped as a 2 double-quote chars.

The correct content is:

```auto
Value
"Str 1"" str2 "

```

See: [Comma-separated values - Wikipedia](https://en.wikipedia.org/wiki/Comma-separated_values) .

Could you please fix this issue and post back on this thread when it's fixed?

Thank you

---

<div class="post-metadata">

**Author:** ![aleksandar.mitrovic](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@aleksandar.mitrovic](https://forums.toadworld.com/u/aleksandar.mitrovic)\
**Post date:** [November 27, 2026, 3:57pm UTC](https://forums.toadworld.com/t/bug-in-the-csv-exporter/61947/2 "2026-11-27T15:57:44Z")

</div>

Hello,

Thank you for bringing this to our attention

We were able to reproduce the issue and have confirmed that double quotes are not handled correctly during CSV export. The issue has been reported internally for further investigation

We appreciate your feedback and the example you provided

---

<div class="post-metadata">

**Author:** ![ruggstrack4765](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@ruggstrack4765](https://forums.toadworld.com/u/ruggstrack4765)\
**Post date:** [December 1, 2026, 6:53pm UTC](https://forums.toadworld.com/t/bug-in-the-csv-exporter/61947/3 "2026-12-01T18:53:19Z")

</div>

Until the fix lands, a possible temporary workaround is to pre-escape the field in the query, e.g. SELECT REPLACE([Value], '"', '""') AS [Value], then run quick export. That should produce the doubled quotes expected in CSV, though it would double-escape once the exporter is fixed.

---

<div class="post-metadata">

**Author:** ![bog](https://avatars.discourse-cdn.com/v4/letter/b/eada6e/32.png) [@bog](https://forums.toadworld.com/u/bog)\
**Post date:** [December 1, 2026, 7:07pm UTC](https://forums.toadworld.com/t/bug-in-the-csv-exporter/61947/4 "2026-12-01T19:07:25Z")

</div>

Yes, that's good idea for ad-hoc queries.
