Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

How to set ALL the replication to DEADLOCK_PRIORITY LOW?

$
0
0

I have just got this email here: enter image description here

Then looking at the sql server log I find this deadlock was caused by one of our procedures (that was the victim) against the replication.

enter image description here

O.K. in this case in particular I noticed that this specific procedure could be tuned, I even found a missing index, as you can see below.

enter image description here

But this same situation has happened so many times, I would have had the procedure won, the replication was the victim, and I would deal with the procedure later on.

How can I put this:

SET DEADLOCK_PRIORITY LOW

everywhere, in every replication transaction?

this is to check it out:

    SELECT session_id,deadlock_priority 
FROM sys.dm_exec_sessions 
    WHERE SESSION_ID = @@SPID

enter image description here

How


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>