0
我收到在以下格式和順序的Excel文件的訂單信息。我需要將它們加載到下面的表格中。如何使用SSIS包將Excel文件數據加載到多個表中?
OrderHeader
-----------
OrderNumber
CustomerID
Customer
--------
CustomerID
CustomerFirstName
CustomerLastName
OrderDetail
-----------
Product Information
在C#,我使用的讀取數據在一次一行,並通過信息的其餘檢查ORDERNUMBER和循環加載此如果保持相同prvious行。現在我正在嘗試轉移到SSIS,並想知道是否有更好的方法可以使用,或者我應該使用腳本任務。
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