SSIS 2012: Trim trailing commas from a CSV output

后端 未结 2 1701
花落未央
花落未央 2020-12-22 02:45

I have a file, I cannot control the output, that has a trailing comma on each data row and not the header row.

\"Pid\",\"Dtdate\",\"Tencode\",\"Stype\",\"Amo         


        
相关标签:
2条回答
  • 2020-12-22 03:00

    An even simpler approach would be to change your connection manager to skip the header row.

    • Header rows to skip: 1
    • Column names in the first data row: unchecked

    enter image description here

    0 讨论(0)
  • 2020-12-22 03:08

    Try setting the column delimiter for the last column as shown below.You will need to type this in the box and not use the Combobox selection. (Or just select {LF} and edit the text and put a Comma before it) enter image description here

    0 讨论(0)
提交回复
热议问题