Staging Flat file with Quotes as Text Qualifier

  • Hey Guys,

    I am using bulk-insert command to stage flat files delmited with comma or pipe with quotes as text qualifier... the problem is the text qualifier.... is there anything that I can use in bulk-insert as the parameter that can ignore those quotes when staging the data? I am sure lot of people have been asking this... sorry. This will be an automated process and we will not be using SSIS or DTS for staging.

  • Problem is we cannot create format file that easily as every file can have different number of fields in it.

  • First row has column name...

  • KeyCode, MemAcctNum, NATitle, NName

    205509,0505488528,,"Rip, Winkle"

    205501,0505488111,,"Tiger, Scott"

    Sample data.

    Quotes only for fields that has embedded comma.

  • Ghanta,

    Please try the solution suggested by Sergiy at http://www.sqlservercentral.com/Forums/Topic18289-8-2.aspx

    It works for me.

    Manu

  • Manu,

    Thanks for the link... solution there should help...

    Actually I have the same problem as the person in that thread had. The quotes will be there for only fields that has embedded comma. I will cehck that thread.

Viewing 6 posts - 1 through 5 (of 5 total)

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