Hi...
I am migrating data from flat file source to database using ssis
The flat file is like:
Column 0 | Column1 | Column2 | Column3 |
B:Ferrari | |||
C:Fiat | |||
D:BMW | |||
E:Hyundai | |||
Quantity | 12345 | 2345 | 1234 |
Amount | 567 | 456 | 444 |
Loss | 234 | 876 | 444 |
Profit | 12345 | 66666 | 9897 |
From the flat file above the data is needed to load in database in the below manner:
- Parse the row that starts with “B/C/D:”, column 0
- New Column “Name”.......................in database
- Take the value after the “:”.............for database
- Parse the row that starts with “Quantity”, column 0
- New Column “Qty”
- Take the value in Column 2
- Parse the row that starts with “Amount”, column 0
- New Column “Amt”
- Take the value in Column 3
and so on..
How to do the above using SSIS. Can it be done through pivot operation??
Please anyone suggest solution.Its very urgent....
j