SSIS preserve trailing spaces in csv destination -
SSIS preserve trailing spaces in csv destination -
i have problem in ssis, simple info flow task between sql select , csv destination. don't retrieve trailing spaces in string columns of destination. seems ssis delete them.
is there way preserve trailing spaces in columns of flat file destination? illustration : info flow task : input : sql select, info char(8) spaces @ right, eg "9l300 " output : flat file, csv format, spaces @ right automatically trimed, eg "9l300"
i need preserve trailing spaces in order not have regression current export in ms dts.
i tried in sql select no effect in csv destination file
rtrim(mydata) + space(8-len(rtrim(mydata))) mydata
just check whether values getting manipulated ole db source or while along way flat file destination or @ flat file destination manager. observe(enable info viewer) values using derived column/data conversion/script component in-between source , destination.
give seek setting value of ansi_padding on database using ole db source.
set ansi_padding
csv ssis spaces flow
Comments
Post a Comment