Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Greetings,

I am unable to load data from multiple sources(Excel and Text) into single SQL server table using SSIS. As in am new to this subject, couldn't find solution for this. When I am browsing for solutions online I found this page(Code Project) and found something interesting about this articles and got to know many new things. And wanted to know solution for this.

Here is the explanation:
A folder contains same structured file (same column count, order and
information) in three different format (.xls, .xlsx & .txt).
Create a solution (single package) to load these three different format file into
single target SQL server table.

Data I worked on is a simple employeedata
VB
empid,ename,dept
1,steve,20
2,john,20
3,martin,30


Appreciate your help.

Thanks!!
Posted
Updated 11-Oct-15 9:11am
v2
Comments
OriginalGriff 11-Oct-15 6:08am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
You need to explain what each of your sources holds, and what you want to add to the "unified" table. The problem is that unless there is some correlation between the two sets of data, we (and SQL) have no idea which rows to put with which, or what to do if there are more of one than the other for example.
So show example data, and try to explain what you want.

Use the "Improve question" widget to edit your question and provide better information.
Member 12049612 11-Oct-15 19:00pm    
Thanks for responding immediately. I had improved my question and help me solve this solution.

1 solution

If all the records in the file need to be inserted to a single table we can apply this scenario.

1. Create multiple flat file sources [note that this could be possible if you have same schema in all the files].
2. Merge all the sources through merge component.
3. Load it to the destination OLEDB component.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900