Import csv with SSIS error

  • I’m trying to import data from CSV to SQL Server 2012 and I’m using SSIS 2012.

    CSV file data:

    Field1,Field2

    “123”,”abc “xyz” wxy”

    The data should read into the database as

    Field1 Field2

    abcabc “xyz” wxy

    The problem is in ”abc “xyz” wxy”

    if I add another set of double quotes inside the field double quotes it will work.

    ”abc ““xyz”” wxy”

    Anyway I can fix this without writing a text parser?

  • According to the official blogs, you indeed need to escape the qualifier inside the column (2 times double quotes).

    Flat File Source Changes in Denali

    What happens if you don't add the extra double quotes? Do you get an error message?

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply