Import data from multiple excel sheets to multiple tables using SSIS
August 25th, 2015 3:30am

https://www.youtube.com/watch?v=1WXKpkwjhX8
Free Windows Admin Tool Kit Click here and download it now
August 25th, 2015 3:54am

Hi ,

You can do multiple Data flow task with excel connection as source and table as destination to load the data or else you can define the dynamic connection string for the excel,if your excel sheets are consistent with name.

Note :- You can store the connection string in variable or in table and call it through ADO.net connection.

Hope this helps.

Thanks


August 25th, 2015 4:03am

Hi Praveen,

Based on your description, you want to load multiple sheets from an Excel File into multiple SQL Server tables.

It depends on the metadata (structure) of the excel sheets. If there are no blank sheets and all the sheets with the exact same structure, we can use a for each loop container with a single data flow task. Otherwise you would need separate data flow tasks for each file. Because the metadata for a data flow cannot change during runtime in SSIS and it will be fixed at design time when you map from source to destination component.

References:
http://www.codeproject.com/Tips/395541/How-to-load-data-from-multiple-Excel-sheets-to-any
http://www.techbrothersit.com/2015/03/load-multiple-sheets-from-multiple.html

Thanks,
Katherine Xiong

Free Windows Admin Tool Kit Click here and download it now
August 25th, 2015 4:32am

Hi Katherine Xiong,

The metadata (structure) of the excel sheets are different. Is it possible to change excel sheet name and table name dynamically? with one excel source and one destination.

Regards,

Praveen C

August 25th, 2015 7:24am

Hi Katherine Xiong,

The metadata (structure) of the excel sheets are different. Is it possible to change excel sheet name and table name dynamically? with one excel source and one destination.

Regards,

Praveen C

Free Windows Admin Tool Kit Click here and download it now
August 25th, 2015 4:27pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics

Hi,

I have an excel file that has multiple sheets and I need to import data from each separate sheet to a separate table using SSIS. 
E.g. Sheet A data should go to Table A and Sheet B data should go to Table B and so on. 

Is it possible to do this with out using script task.

Can somebody help me to achieve this?

Regards,

Praveen C