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

Combine Primary key from Destination Table Load with Source Data

$
0
0

Hi,

I have a flat file with several fields and this data needs to get loaded to one parent and multiple child tables. Think of this as a Sample header and Sample line information rolled up in one row.

The first few fields need to get loaded into the header table (parent table) and  I need to use the  primarykey (parentid) from the parent table as a foreign key in the subsequent data flows for loading child tables.

Is there a way I can do this in ssis?


Note: Generally I would have created a second data flow task with the flat file as the source and add an extensive lookup onto the the header table (parent table) and get the parentid that way.

But in this case the header table doesn't have any fields which I can use to make a one-on-one match to the source file.   

 Thanks!       


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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