Posted: Tue Jul 03, 2012 9:31 am
Are you sure that you haven't switched around your primary and secondary input links? Assume they are switched, would that explain your output behaviour?
A short text to describe your forum
http://www.dsxchange.com/
By the fact you are checking if "name" and "sub_name" exist in the target table, it makes these the keymandyli wrote:1) I need to find out if there is no match records found between sources and target using 'Name '& 'sub_name' column then I have to insert with Flag 'Y'
So you want your full target data as your "before" set and your source data as "after" in CDC, use both "name" and "sub_name" as your key. Keep both inserts and deletes meaning if the row is in your "before" and not in your "after" you send through a delete record (code 2) and if it exists in your "after" and not "before" you send through an insert record (code 1)mandyli wrote:2) There is some rows in Target but not in Source then I have to update the Flag 'N'