Hi,
I have a csv file with the following format:
9-Jan-03 | S | MC100;MC101;MC128 | CAPITAL BUILDER | IFO | HEL | MC100 0.0;MC101 0.0;MC128 0.0 |
1-Jan-00 | M | B02;C02;MC04;MC23 | UNIVERSAL RETIREMENT PROGRAMME | PUP | HIL | B02 13276.17;C02 13462.17;MC04 12726.15;MC23 11952.31 |
8-Aug-12 | M | MC200;MC201;MC228 | CAPITAL BUILDER FUND | IFOG | HELD | MC200 0.0;MC201 0.0;MC228 0.0 |
I want to insert this data into SQL table in the following format:
9-Jan-03 | S | MC100 | CAPITAL BUILDER | IFO | HEL | MC100 0.0 |
9-Jan-03 | S | MC101 | CAPITAL BUILDER | IFO | HEL | MC101 0.0 |
9-Jan-03 | S | MC128 | CAPITAL BUILDER | IFO | HEL | MC128 0.0 |
1-Jan-00 | M | B02 | UNIVERSAL RETIREMENT PROGRAMME | PUP | HIL | B02 13276.17 |
1-Jan-00 | M | C02 | UNIVERSAL RETIREMENT PROGRAMME | PUP | HIL | C02 13462.17 |
1-Jan-00 | M | MC04 | UNIVERSAL RETIREMENT PROGRAMME | PUP | HIL | MC04 12726.15 |
1-Jan-00 | M | MC23 | UNIVERSAL RETIREMENT PROGRAMME | PUP | HIL | MC23 11952.31 |
8-Aug-12 | M | MC200 | CAPITAL BUILDER FUND | IFOG | HELD | MC200 0.0 |
8-Aug-12 | M | MC201 | CAPITAL BUILDER FUND | IFOG | HELD | MC201 0.0 |
8-Aug-12 | M | MC228 | CAPITAL BUILDER FUND | IFOG | HELD | MC228 0.0 |
Is there any way to do this in SSIS package?
I can do this using a Script Task and writing a code to loop through each line in the csv file. But that would be very messy.
Please suggest a simpler way to do this.
Thanks!!