Problem:: SSIS: Excel Destination. Mapping columns dynamically

  • Hi

    My requirement is as follows:

    I have multiple Excel sheets in a folder which are in same format.

    I need only one Column(for Example Column D) in all excel sheets and need move the data into an Excel Sheet(Data from all the excel sheets should move into one excel sheet but into different columns).

    Example:

    We have three excel sheets in a folder(which are in same format).

    Need to capture data in Column D of all these three excels.

    Output should go into three different columns(Column A consists of first excel sheet data,Column B consists of second excel data..and so on..) of excel sheet.

    I have used Foreach Loop Container to read the data from all the excel sheets in the folder.

    But the data moves into only one column of the output excel sheet.

    How can we move the data multiple columns of the output excel?

    Do any one know about this? If i am missing any other details which are required let me know.

    Thanks in Advance.

  • The way I would do this would be to load all the data from the three sheets into a sql database table with a column for the data and another column to identify which sheets they came from,

    Then i would create a query to select from that table that would select a column for each sheet based upon the sheet Id , and then use this as a source to populate the destination spreadsheet.

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

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