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

How to load multiple rows of order data with same info on each row for order but only product info is different?

$
0
0

Hi,

I am newbee to SSIS so i hope the experts go easy on my lame question. I am getting my order information in an excel file in the following format and order and i need to load these into orderheader (OrderNumber, CustomerID), customer(customerid, customerFirstname, customerlastname) and orderDetail (product infomation) tables. In C# i used to load this by reading the data one row at a time and checking for ordernumber and loop through rest of the info if that remained the same as pervious. Now i am trying to move to SSIS and was wondering if there's a better approach that i can use or should i be using script control.

Any guideance would be greatly appreciated.

Thanks.


OrderNumber   CustomerID     CustomerFirstName     CustomerLastName     Product ID     Model No     Serial No     Date of Purchase
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
000001            A1                       John                               Doe                               111                1x1x1x          1s1s1s         11/1/2012

000001            A1                       John                               Doe                               112                1x1x2x          1s1s2s         11/1/2012

000001            A1                       John                               Doe                               113                1x1x3x          1s1s3s         11/1/2012

000001            A1                       John                               Doe                               114                1x1x4x          1s1s4s         11/1/2012

000001            A1                       John                               Doe                               115                1x1x5x          1s1s5s         11/1/2012

000001            A1                       John                               Doe                               116                1x1x6x          1s1s6s         11/1/2012

000002            A2                       John1                               Doe1                               111                1x1x1x          1s1s1s         11/1/2012

000002            A2                       John1                              Doe1                               112                1x1x2x          1s1s2s         11/1/2012

000002            A2                       John1                               Doe1                               113                1x1x3x          1s1s3s         11/1/2012

000002            A2                       John1                               Doe1                               114                1x1x4x          1s1s4s         11/1/2012

000002            A2                       John1                               Doe1                               115                1x1x5x          1s1s5s         11/1/2012

000002           A2                      John1                               Doe1                               116                1x1x6x          1s1s6s         11/1/2012



Viewing all articles
Browse latest Browse all 24688

Trending Articles