Quantcast
Channel: Is the update in this MERGE Statement redundant? - Database Administrators Stack Exchange
Browsing all 2 articles
Browse latest View live

Answer by Daniel James Bryars for Is the update in this MERGE Statement...

Something needs to be in the WHEN MATCHED THEN clause, otherwise you don't get the Id back when the row exists.However, you don't need to update the target table.DECLARE @dummy int;;WITH...

View Article



Is the update in this MERGE Statement redundant?

I'm trying improve the performance of a complicated stored procedure. Inside the stored procedure is the following MERGE statement. I'm not very familiar with the MERGE syntax.The...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images