Load multiple text files into different tables in sql server using ssis

Hi Experts,

I need your help in building a ssis package to load 80 different flat files (.txt files) from a single folder location to different tables on sql server.

I did some research online and found that, using for each loop this can be possible. But I would need help with a step by step process. Please help!

Please let me know if my question is not clear.
ravichand-sqlAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim HornMicrosoft SQL Server Data DudeCommented:
>80 different flat files (.txt files) from a single folder location to different tables on sql server.
>I did some research online and found that, using for each loop this can be possible.

Define 'different'.  
If same schema (file specs) and different data, then yes it's possible, assuming you can come up with a way to 'map' file name a to table a, file name b to table b, etc.   Likely this will be by storing it in a table, then it actually loops through the table.
If different schema (file specs), then this is not possible, as each unique source to target mapping requires a 'contract' between the two, and it is not possible to take a single data pump, with a single contract, and put it inside a ForEach File Loop that runs 80 times for 80 different contracts.  So, you would need up to (?) 80 unique data flow tasks.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.