excel filename to update in sql table column

  • Hi, I have a excel sheet exports to sql table. excel name is sporty1284.xls(dynamic excel file)

    where "sport"(4 letters from excel filename) should be written to the book column name in sql table.

    I have tried with derived column but it doesn't work as it asks for mapping from the excel. my excel doesn't have sport as column name to map.

    The 'sport' column is already available in sql table. i know derived column transformation can add new column but i cannot delete and redo every-time.

  • Are you using a Foreach loop to process the file?

    The absence of evidence is not evidence of absence
    - Martin Rees
    The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
    - Phil Parkin

  • Hi Phil,

    yes i am using for each loop

  • susmitha117 (9/23/2014)


    Hi Phil,

    yes i am using for each loop

    Are you assigning the file name to a variable? If not, create yourself a variable and ensure that the file name gets assigned to it.

    See here [/url]for a description of that (among other things).

    Now that you have your file name in a variable, I am assuming that you are happy adding a derived column to your dataflow which extracts the bit you need.

    The absence of evidence is not evidence of absence
    - Martin Rees
    The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
    - Phil Parkin

Viewing 4 posts - 1 through 3 (of 3 total)

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