Skip to content
Discussion options

You must be logged in to vote

There is no way to make the quotation mark at the beginning of a field be interpreted as part of the value.
The effect of the @@ANSI_QUOTES flag is applies to executable statements, not to data to be read.

CSV data are read according to RFC 4180.
Therefore, fields containing double quotation marks must be enclosed with double quotation marks and escaped.

  1. Fields containing line breaks (CRLF), double quotes, and commas
    should be enclosed in double-quotes. For example:
  "aaa","b CRLF
  bb","ccc" CRLF
  zzz,yyy,xxx
  1. If double-quotes are used to enclose fields, then a double-quote
    appearing inside a field must be escaped by preceding it with
    another double quote. For example:

    "aaa","b""b…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by redongh
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants