<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Export data to csv SQL Anywhere 8 in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/export-data-to-csv-sql-anywhere-8/qaa-p/13832580#M4863423</link>
    <description>&lt;P&gt;Using QUOTE '"' resolved my problem.  Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2016 09:45:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-11-04T09:45:02Z</dc:date>
    <item>
      <title>Export data to csv SQL Anywhere 8</title>
      <link>https://community.sap.com/t5/technology-q-a/export-data-to-csv-sql-anywhere-8/qaq-p/13832575</link>
      <description>&lt;P&gt;I am using ISQL with SQL Anywhere 8 to export some data from tables to csv.  My query looks something like this:&lt;/P&gt;
&lt;P&gt;SELECT ColumnA, ColumnB, ColumnC
FROM sometable
WHERE ....;
OUTPUT TO 'c:\\file.csv' FORMAT ASCII QUOTE '';&lt;/P&gt;
&lt;P&gt;When there is a comma in the value of any of the columns, it causes the data to get truncated and shift.  For example, if ColumnA has the text 'some text, more text' then ColumnA in the resulting spreadsheet will be 'some text' while ColumnB will be 'more text'.  This is messing up the formatting.  I've tried using different delimiters with no luck.  The goal here is to get the csv data into a nicely formatted Excel spreadsheet.&lt;/P&gt;
&lt;P&gt;Thanks, Tom&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 12:09:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/export-data-to-csv-sql-anywhere-8/qaq-p/13832575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-03T12:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Export data to csv SQL Anywhere 8</title>
      <link>https://community.sap.com/t5/technology-q-a/export-data-to-csv-sql-anywhere-8/qaa-p/13832576#M4863419</link>
      <description>&lt;P&gt;Hi Tom,
that's what the quotes are for. If the separator character appears within the quotes, it will be considered part of the string value. When importing the .csv into Excel, you can also specify the quote, causing Excel to remove them from the actual value.&lt;/P&gt;
&lt;P&gt;It is the fundamental issue with csv that without quotes, you need a separator character (or sequence) that can't occur in values.&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;
&lt;P&gt;Volker&lt;/P&gt;
&lt;P&gt;DB-TecKnowledgy&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 16:09:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/export-data-to-csv-sql-anywhere-8/qaa-p/13832576#M4863419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-03T16:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Export data to csv SQL Anywhere 8</title>
      <link>https://community.sap.com/t5/technology-q-a/export-data-to-csv-sql-anywhere-8/qaa-p/13832577#M4863420</link>
      <description>&lt;P&gt;AFAIK, Excel assumes the double quote ('"') as default quote, so OUTPUT ... QUOTE '"' may be the easiest/most appropriate choice.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 17:32:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/export-data-to-csv-sql-anywhere-8/qaa-p/13832577#M4863420</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2016-11-03T17:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Export data to csv SQL Anywhere 8</title>
      <link>https://community.sap.com/t5/technology-q-a/export-data-to-csv-sql-anywhere-8/qaa-p/13832578#M4863421</link>
      <description>&lt;P&gt;So what do I change in the OUTPUT TO section to prevent this from happening?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2016 17:39:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/export-data-to-csv-sql-anywhere-8/qaa-p/13832578#M4863421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-03T17:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Export data to csv SQL Anywhere 8</title>
      <link>https://community.sap.com/t5/technology-q-a/export-data-to-csv-sql-anywhere-8/qaa-p/13832579#M4863422</link>
      <description>&lt;P&gt;You can specify the delimiter too, adding:
delimited by 'somecharacters'; Both output and input &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 04:30:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/export-data-to-csv-sql-anywhere-8/qaa-p/13832579#M4863422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-04T04:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Export data to csv SQL Anywhere 8</title>
      <link>https://community.sap.com/t5/technology-q-a/export-data-to-csv-sql-anywhere-8/qaa-p/13832580#M4863423</link>
      <description>&lt;P&gt;Using QUOTE '"' resolved my problem.  Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 09:45:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/export-data-to-csv-sql-anywhere-8/qaa-p/13832580#M4863423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-04T09:45:02Z</dc:date>
    </item>
  </channel>
</rss>

