SSIS ScriptTask Or Derived Column

  • I have a Flat File Connection to connect and loop through file with a for each loop.

    In the process I extract data from the file then push it SQL table.

    Before I push each record in that file I need to Add a Field.

    the trick before I add the field I need to Strip two digits from the file Name put those two digit in a Variable Then Add the new field with a Derived Column.

    My issue at what point should I do this.

    Before the data conversion? or after?

    Then what object to use to First Strip the file name and set Variable

    I was hoping I do it all in a look up object with an expression. That don't seam Possible?

    So What I would Set @File_code = Strip(FileName)

    Then Set @Carrier_ID = Lookup(Carrier_ID)

    Thank you very much!

  • You can always use a variable to hold the stripped characters, and set it to be evaluated as expression.

    Then, add this variable as a derived column.

    Tom

    Life: it twists and turns like a twisty turny thing

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply