generated excel from SSIS but getting quote in every column?

前端 未结 4 1514
小蘑菇
小蘑菇 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:23

    the single quote or apostrophe is a way of entering any data (in Excel) and ensure it is treated as text so numbers with leading zeros or fractions are not interpreted by Excel as numeric or dates.

    a NJ zip code for instance 07456 would be interpreted as 7456 but by entering it as '07456 it keeps its leading zero (please note that numbers in your example are left aligned, like text is)

    I guess SSIS is adding the quotes because your data is of VARCHAR type

提交回复
热议问题