Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Load Multiple All SHEETS from Single Excel file
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

213 Posts

Posted - 05/22/2013 :  03:32:31  Show Profile  Reply with Quote
i am loading the data from Excel to Sql server using SSIS packages.
i have Single EXCEL file having Mutiple Sheets with same DATA Structures
(8 columns).to same table.
i have tried this one using ssis variable. that variable i have assigned to one sheet .so only assigned sheet is loading multiple times

any one know explain me the exact way of loading..

Flowing Fount of Yak Knowledge

2242 Posts

Posted - 05/22/2013 :  03:42:23  Show Profile  Reply with Quote
Load those sheets to one sheet by using


Edited by - bandi on 05/22/2013 03:42:48
Go to Top of Page

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 05/22/2013 :  03:43:04  Show Profile  Reply with Quote
You need to make variable dynamic by setting the EvaluateAsExpression to true and set an expression to get correct sheet name. The expression can be based on another variable which gets populated using a query that retrieves sheet names in th excel. Also You will reuire a for each loop for looping through each of the sheets
SQL Server MVP

Edited by - visakh16 on 05/27/2013 01:11:33
Go to Top of Page

Starting Member

1 Posts

Posted - 05/25/2013 :  14:52:34  Show Profile  Reply with Quote
All you need to do is to use Foreach Loop Container which will loop through each of sheet and perform Data Flow Task activities.

A step by step example is here:

SSIS: How to loop through Multiple Excel sheets and load them into a SQL Table?

Vikash Kumar Singh |
Go to Top of Page

Starting Member

2 Posts

Posted - 11/23/2013 :  17:15:25  Show Profile  Reply with Quote

I found something here for your question ...

How to load data into a database table from an excel spreadsheet using SSIS:

hope it helps :)
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000