Hi,
I am building dtsx package dynamically based on the column mappings done through GUI interface and then executing that package to do the data transfer.
The Source is excel file and destination is SQL Server 2005.
There is a foreign key field referencing Table-B in the destination table Table-A. I need to insert the selected source column record into Table-B first if not exists or update if exists and get the primary key value from Table-B and then insert the values in Table-A along with primary key value of Table-B into foreign key column in Table-A.
Tried on the web on how to do this programatically, but could not find any.
Please help.
regards,
hari.