SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to perform this particular excel importing task, kindly help


How to perform this particular excel importing task, kindly help

Author
Message
prabhu.st
prabhu.st
SSC-Addicted
SSC-Addicted (442 reputation)SSC-Addicted (442 reputation)SSC-Addicted (442 reputation)SSC-Addicted (442 reputation)SSC-Addicted (442 reputation)SSC-Addicted (442 reputation)SSC-Addicted (442 reputation)SSC-Addicted (442 reputation)

Group: General Forum Members
Points: 442 Visits: 310
Hi Friends,

I have one task assigned whereas I need to import one excel file into the sql server DB. I have completed the task in a complex way, below is the details.

what I did:

1) Excel has 5 tabs (sheet1-sheet5)
2) splited the tabs as seperate excel sheets with only one sheet (sheet1 only)
3) created seperate connection managers for each tab (5 files now) and seperate excel source for each.
4) loaded into the DB

what I need:
1) I need to do this in a automated way, so that if in future few more tabs added or few tabs removed in the source excel it can process only those number of tabs.
2) I know we may do this through "for each loop" container. but I am very new to SSIS, so I am struggling a lot to do that.
3) I have given the sample excel sheet and the sample of package as a screen shots.

Note: each tabs vary in its columns number and row numbers.

please find the attachment for reference.
Attachments
SampleExcel.xlsx (12 views, 16.00 KB)
SampleControlFlow.jpg (7 views, 143.00 KB)
SampleDataFlow.jpg (8 views, 168.00 KB)
Koen Verbeeck
Koen Verbeeck
SSC Guru
SSC Guru (64K reputation)SSC Guru (64K reputation)SSC Guru (64K reputation)SSC Guru (64K reputation)SSC Guru (64K reputation)SSC Guru (64K reputation)SSC Guru (64K reputation)SSC Guru (64K reputation)

Group: General Forum Members
Points: 64378 Visits: 13298
This article should get you started:

Loop through Excel Files and Tables by Using a Foreach Loop Container


How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
My blog at SQLKover.

MCSE Business Intelligence - Microsoft Data Platform MVP
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search