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

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Load Multiple All SHEETS from Single Excel file

Author  Topic 

kond.mohan
Posting Yak Master

213 Posts

Posted - 2013-05-22 : 03:32:31
Hi,
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..

bandi
Master Smack Fu Yak Hacker

2242 Posts

Posted - 2013-05-22 : 03:42:23
Load those sheets to one sheet by using http://www.codeproject.com/Tips/395541/How-to-load-data-from-multiple-Excel-sheets-to-any...

--
Chandu
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-05-22 : 03:43:04
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

http://visakhm.blogspot.in/2012/05/package-to-implement-daily-processing.html
------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

singhvikash
Starting Member

1 Post

Posted - 2013-05-25 : 14:52:34
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:

http://www.singhvikash.in/2012/11/ssis-how-to-loop-through-multiple-excel.html

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

Vikash Kumar Singh | www.SinghVikash.in
Go to Top of Page

Angel6666
Starting Member

2 Posts

Posted - 2013-11-23 : 17:15:25
Hi,

I found something here for your question ...


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

http://sqlsaga.com/ssis/how-to-load-data-into-a-database-table-from-an-excel-spreadsheet-using-ssis/

https://www.facebook.com/sqlsaga


hope it helps :)
Go to Top of Page
   

- Advertisement -