SSIS : Using multicast to enter data into 2 RELATED destinations

前端 未结 4 473
攒了一身酷
攒了一身酷 2021-01-13 20:46

I am new to SSIS. I have data coming from a single source. I need to enter that data into several tables (these tables are related by foreign key relationships). I am usi

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-13 21:44

    Another approach I would try in with task like yours is to artificially generate the ID field for the parent table. The idea here is knowing the ID ahead so you can assign the foreign key values.

    Then instead of using multicast, load the data sequentially: parent, and then child. For the parent table, tick the Keep Identity property (OLEDB Destination).

提交回复
热议问题