Solved

Reading files from a afolder using SSIS

Posted on 2009-05-18
3
711 Views
Last Modified: 2013-11-10
I have to read all the excel files in a a particular folder one by one and move the contents to an sql database using SSIS.
The no: of excel files will vary each time.
Also the files will have different names.
Once a file is parsed it will be moved to another location (we will be using File System Task fo r this)

Thanks in Advance!
Asha
0
Comment
Question by:AshaPournami
3 Comments
 
LVL 22

Accepted Solution

by:
PedroCGD earned 250 total points
ID: 24410788
Check the document I made for BI community
http://biresort.net/blogs/pedrocgd/archive/2009/05/14/stepbystep-ssis-moving-huge-amount-of-files.aspx

Dopwnload the document and give feedback
Helped?
Regards,
Pedro
www.pedrocgd.blogspot.com
0
 
LVL 13

Assisted Solution

by:TommyTupa
TommyTupa earned 250 total points
ID: 24427825
Assisting with SSIS can lean toward the verbose, so I'm going to point to some helpful URLs.  

-Microsoft has a good article on looping through a folder and importing excel files.  Try going through this and let me know if questions remain:  
http://msdn.microsoft.com/en-us/library/ms345182(SQL.90).aspx

-As far as the filenames and number of files are concerned, you should be good as long as they're all in the same folder....  the For Each Loop Editor makes that relatively easy.  A simple example on using the For Each Loop Editor is here:
http://blogs.conchango.com/jamiethomson/archive/2005/05/30/1489.aspx

-The toughest part for me on importing multiple excel files has always been getting it into the database correctly.  These guys have a good article on handling the data conversion:
http://www.mssqltips.com/tip.asp?tip=1393
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Slow SQL query 12 29
Split Data in 1 column into 2 columns 8 21
Authentication error 1 0
Error in query 3 0
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how the fundamental information of how to create a table.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now