Viewing 2 posts - 1 through 2 (of 2 total)
.... also in the merge you could have a condition not to update if the value is the same:-
-- MERGE
MERGE #Target t
USING (@ID, @VALUE)
...
October 28, 2013 at 3:19 am
#1661878
Morning all,
I think the way that the MERGE source table has been written would definitely under perform compared to the upsert.
e.g.
USING #Source...
October 28, 2013 at 3:13 am
#1661875