Viewing 4 posts - 1 through 4 (of 4 total)
Thanks for the suggestions. I am still curious to know why the MERGE statement deadlocks though. Any ideas?
November 17, 2020 at 8:00 am
>>Use INSERT instead of MERGE in the second statement.
How would I then handle duplicates? I don't want to insert a duplicate record if there already is one that matches the...
November 16, 2020 at 3:28 pm
I use the WITH (SERIALIZABLE) hint to avoid deadlocks...
November 16, 2020 at 2:18 pm
The whole procecure is what you see above, except for the parameters, and the issue is intermittent.
SET XACT_ABORT ON should roll back the transaction on run-time errors.
November 16, 2020 at 8:17 am
Viewing 4 posts - 1 through 4 (of 4 total)