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

(SSIS) Data Flow Task – export SQL to excel file. Problem with the relational table

$
0
0
I'm looking for a solution / tutorial following case. In the MS SQL database I have two tables: Invoice and related table InvoiceItem. I need to export data to excel.

My problem is the structure of the export excel file. ( 1, 2, 3 … line number in the file excel)

  1. First record from table “invoice” (A1, B1, C1, D1), First related records from table “InvoiceItem” (E1, F1, G1)

  2. Empty cels (A2, B2, C2, D2), Second related records from table “invoice item” (E2, F2 , G2)

  3. Empty cels (A3, B3, C3, D3), Third related records from table “invoice item” (E3, F 3, G3)

  4. empty row

  5. Second record from table “invoice” (A5, B5, C5, D5), First related records from table “InvoiceItem” (E5, F5 , G5)

  6. Empty cels (A6, B6, C6, D6), Second related records from table “invoice item” (E6, F6, G6)

  7. Empty cels (A6, B6, C6, D6), Third related records from table “invoice item” (E6, F6, G6)

  8. Empty cels (A6, B6, C6, D6), Fourth related records from table “invoice item” (E6, F6, G6)

  9. empty row

  10. … … ...

  11. empty row

  12. Last record from table “invoice” (Ax, Bx, Cx, Dx), First related records from table “InvoiceItem” (Ex, Fx , Gx)

  13. Empty cels (Axx, Bxx, Cxx, Dxx), Second related records from table “invoice item” (Exx, Fxx , Gxx)

  14. empty row

I want to create an SSISFlow Task to export SQL tables to excel.Does anyone know of a good example ?



Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>