SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

kond.mohan
Posting Yak Master

India
185 Posts

Posted - 05/22/2013 :  03:32:31  Show Profile  Reply with Quote
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
Flowing Fount of Yak Knowledge

India
2168 Posts

Posted - 05/22/2013 :  03:42:23  Show Profile  Reply with Quote
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

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

visakh16
Very Important crosS Applying yaK Herder

India
52249 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

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

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

singhvikash
Starting Member

India
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:

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 - 11/23/2013 :  17:15:25  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New 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.09 seconds. Powered By: Snitz Forums 2000