SSIS – How to create a new line character (CRLF) column as Derived Column

Category: SSIS

Use the following expression in order to create a derived column

(DT_STR,2,1252)"\r\n"

By default Data Type of string “\r\n” is DT_WSTR so here I am casting the data type to DT_STR

Share

1 comment

Your email address will not be published. Required fields are marked *

  1. Navin says:

    Thanks, worked perfectly. I was looking to replace new line characters with ‘ ‘. The below worked.

    LTRIM(RTRIM(REPLACE([Field],(DT_STR,2,1252)”\r\n”,” “)))