Solved

Reading files from a afolder using SSIS

Posted on 2009-05-18
3
717 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

820 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