i am working on a scenerio where i need to load 3 csv files into my table. For this purpose am using 3 flat file connection managers.
Now instead of using 3 flat file connection managers i need to use only one connection Manager for all the 3 files.
I came to know we can use Multi File Connection Manger for this purpose, but this works only when the files have same columns.
1. My first csv has id, Rate, Amount,Total_Amt columns
2. Second Csv File has id, Rate, Amount, Total_Amt, Date, Debt columns
3. Third CSV File has id, Rate, Amount, Total_Amt, loss, Gain columns
how can i use multi file connection manager for this approach.
You can’t; the multi file connection manager effectively loops over the files you specify and applies the same settings to each file. If you want different settings you’ll either need to use distinct connection managers or create your own connection manager (which would probably only be a wrapper around three individual connection managers anyway).
Sounds like an unusual requirement anyway; what’s the reasoning behind only having a single connection manager?