generated excel from SSIS but getting quote in every column?

前端 未结 4 1516
小蘑菇
小蘑菇 2020-12-18 10:43

I have generated and excel from SSIS package successfully. But every column is having extra \' (quote) mark why is it so?

4条回答
  •  清歌不尽
    2020-12-18 11:24

    You could create a template Excel file in which you have specified all the column types (change to Text from General) and headers you will need. Store it in a /Template directory and have copy it over to where you will need it from within the SSIS package.

    In your SSIS package:

    1. Use Script Component to copy Excel Template file into directory of choice.
    2. Programatically change its name and store the whole filepath in a variable that will be used in your corresponding Data Flow Task.
    3. Use Expression Builder for your Excel Connection Manager. Set the ExcelFilePath to be retrieved from your variable.

提交回复
热议问题