Help escaping with External File Format

Hochmanj 101 Reputation points
2021-07-21T21:40:12.36+00:00

I'm trying to create an external file format to create an external table off of a csv file with a simplified example row shown below consisting of three string fields (the last being html):

 foo,bar,"<div id=""myId"">\n<p>hello</p>\n</div>"\n

it seems, that all the '\n''s including those inside the last field are creating new lines.

Is there a way to escape the html \n while honoring the 'actual' \n that occurs at the end of the row?

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,916 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Abbey 1,181 Reputation points
    2021-07-21T21:57:38.097+00:00

    In your dataset, set the Quote character to '"' (double quote)


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.