The major improvement is the fact that now TableDifference can handle a field as
- Key: a field that represent a key in the table, you must supply KeyOrder
- Compare: a field that is to be compared between OLD and NEW, you must supply UpdateID
- PreferNEW: the field appear in both flows but you want the value from the NEW flow
- PreferOLD: the field appear in both flows but you want the value from the OLD flow.
Mostly valuable implementation is PreferOLD, in this way you can use the ID of the OLD table in the subsequent flows to make any kind of update you want in an easier way.
You can find the whole article and source code on www.sqlbi.eu.
Originally appeared on: http://sqlblog.com/blogs/alberto_ferrari/archive/2006/07/06/table-difference-1-1.aspx