Using Excel to create a CSV file with special characters and then Importing it into a db using SSIS

前端 未结 2 1178
我寻月下人不归
我寻月下人不归 2021-01-26 08:16

Take this XLS file

\"enter

I then save this XLS file as CSV and then open it up w

2条回答
  •  渐次进展
    2021-01-26 08:57

    Do you need to use a comma delimiter.

    I used a pipe delimiter with no Text qualifier and it worked fine. Here is my output form the text file.

    1|ABC|AB"C|D,E|F|03|3,2

    You have 3 options in my opinion.

    1. Read the data into a stage table.
    2. Run any update queries you need on the columns
    3. Now select your data from the stage table and output it to a flat file.

    OR

    1. Use pipes are you delimiters.

    OR

    1. Do all of this in a C# application and build it in code.
    2. You could send the row to a script in SSIS and parse and build the file you want there as well.

    Using text qualifiers and "character" delimited fields is problematic for sure.

    Have Fun!

提交回复
热议问题