SQL Server import - " in column causing problems
i have a CSV file that I'm importing into SQL Server 2008 R2. In the Flat File connection manager i have, Format Delimited; Text Qualifier "; Header row delimiter {CR}{LF} Header rows to skip: 0;
and on the field causing the problem i have TextQualified True
the problem is -- i come to one set of data that looks similar to this:
this is the data that goes into "The problem Field" and it continues, with this information.
the import look's like
Field 1
this is the data that goes into "The problem Field" and it continues
Field 2
with this information.
what is SHOULD LOOK LIKE is
Field 1
this is the data that goes into "The problem Field" and it continues, with this information.
How do i get the second set of " marks to stay within the data?
Microsoft SQL Server 2008
Last Comment
Anthony Perkins
8/22/2022 - Mon
lojk
Unless your data that you are using (when opened in a text viewer like notepad) looks like this
"this is the data that goes into ""The problem Field"" and it continues, with this information.","Field2Value",...
it is not going to work - try stripping quotes from your text at input or consider outputting the text from your source as an XML format - that is much more forgiving (actually understanding) of special characters.
"this is the data that goes into ""The problem Field"" and it continues, with this information.","Field2Value
it is not going to work - try stripping quotes from your text at input or consider outputting the text from your source as an XML format - that is much more forgiving (actually understanding) of special characters.