Export (0) Print
Expand All

String Padding (SSIS)

The expression evaluator does not check if a string contains leading and trailing spaces, and it does not pad strings to make them the same length before it compares them. If expressions requires string padding, you can use the + operator to concatenate column values and blank strings. For more information, see + (Concatenate) (SSIS).

On the other hand, if you want to remove spaces, the expression evaluator provides the LTRIM, RTRIM, and TRIM functions, which remove leading or trailing spaces, or both. For more information, see LTRIM (SSIS), RTRIM (SSIS), and TRIM (SSIS).

ms141673.note(en-US,SQL.90).gifNote:
The LEN function includes leading and trailing blanks in its count.

Community Additions

ADD
Show:
© 2014 Microsoft