SSIS Script

  • Need help with the syntax for a Script that Set a Variable.

    I have a Variable being sent in at Run time. FileName = FileName.txt

    I need to use this variable to set a variable called DestinationTableName.

    Something like DestinationTableName = Right(FileName,4)

    This should strip off the .txt and Set DestinationTableName = 'FIleName'

    Thanks!!! for all your help don't know what I would do without you guys/gals

  • Try this:

    Dts.Variables("DestinationTableName").Value = System.IO.Path.GetFileNameWithoutExtension(FileName)

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

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