I have a quote delimited CSV file. Most of the 90,000 lines are great, but I have a few lines that contain a text box containing both a quote and a comma. For example, a field value would be:
AB ", AB
When "Delimited," it becomes
"AB" "AB"
When SQL 2005 tries to import this, I get errors like ...
Messages
Error 0xc0202055: Data Flow Task: The column delimiter for column "Column 4" was not found.
(SQL Server Import and Export Wizard)
This only happens when the quote and the comma are in the text value together. Type Values
AB "AB, which becomes" AB "AB" or AB, AB, which becomes "AB, AB"
works fine.
Here are some examples of strings ...
"1464885", "LEVER WM", "", "B", "MP17"
"1465075", ": PLT-BC !! NOTE !!", "", "B", ""
"1465076", "BRKT-STR MTR! NOTE!", "", "B", ""
"1465172", ": BRKT-SW MTG! NOTE!", "", "B", "MP16"
"1465388", "BUSS BAR! NOTE!", "", "B", "MP10"
"1465391", "PLT-BLKHD" "NOTE" "", "", "B", "MP20"
"1465564", "SPROCKET: 13TEETH, 74MM OD, 66MM", "ID W / .25" "SETSCR", "B", "MP6"
"S01266330002", "CABLE: 224" ", E122 / 261.8 CO", "", "B", "MP11"
The last line is an example of a problem - "" causes an error.