Solved

Reading files from a afolder using SSIS

Posted on 2009-05-18
3
723 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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.

752 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