2

I am using SSIS to transform my data. My file_name is test_heathcare.csv. How can I bring it to my flat file destination as new derived column being filename as test_healthcare20190712.txt?

If anyone know please help me .

Hadi
  • 36,233
  • 13
  • 65
  • 124
Kate
  • 445
  • 3
  • 9
  • 22

1 Answers1

1

You can use expressions to achieve that:

  1. Store your file path within a variable.
  2. Then click on the destination Flat File Connection Manager. Press F4 to show the properties tab.
  3. Go to Expressions property
  4. From tge expressions window select the ConnectionString property and use a similar expression:

    REPLACE(@[User::FilePath],".csv","20190712.txt")
    

Additional Information

Hadi
  • 36,233
  • 13
  • 65
  • 124