Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS Package for data migration issue_urgent help..

$
0
0

Hi...

I am migrating data from flat file source to database using ssis

The flat file is like:

Column 0Column1Column2Column3
B:Ferrari
C:Fiat
D:BMW
E:Hyundai
Quantity1234523451234
Amount567456444
Loss234876444
Profit12345666669897

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
      1. New Column “Name”.......................in database
      2. Take the value after the “:”.............for database
    1. Parse the row that starts with “Quantity”, column 0
      1. New Column “Qty”
      2. Take the value in Column 2
    1. Parse the row that starts with “Amount”, column 0
        1. New Column “Amt”
        2. 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


      Viewing all articles
      Browse latest Browse all 24688

      Trending Articles