|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: 2 days ago @ 5:49 AM
Points: 202,
Visits: 1,043
|
|
During execution of a critical application process; a system process (e.g db auto shrink) evoked and the process prolonged to manually rollback.
Is DEADLOCK_PRIORITY can be useful against system processes? We need to disable db auto shrink, but .... any other solution? 
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 2:10 PM
Points: 2,668,
Visits: 688
|
|
not quite sure what you're asking but yes "system" processes can evoke deadlocks - that's why you have to configure your server to avoid such issues. Index rebuilds for instance can also cause deadlocks. I don't think you can alter the priority for system processes, you could try altering your sessions but I figure that might be risky.
The GrumpyOldDBA www.grumpyolddba.co.uk http://sqlblogcasts.com/blogs/grumpyolddba/
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: 2 days ago @ 5:49 AM
Points: 202,
Visits: 1,043
|
|
... I don't think you can alter the priority for system processes, you could try altering your sessions but I figure that might be risky.
how?
In general I want to get rid of Blocking/Dead locking ultimately, as if a process which may take more than 1 hour for execution and a single sql statement which can trigger out deadlock and would may cause/stop the long running process...!

|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Thursday, May 16, 2013 2:10 PM
Points: 2,668,
Visits: 688
|
|
ah well if it's application then it's processes/code that you need to change - if it's system stuff then you need to find a quiet time. I support real 7 x 24 hour systems so things like index rebuilds are quite painful. You can set the deadlock priority for your session ith a set command - check it out in BOL. However it doesn't stop deadlocks - just allows you to favour one session over another as the deadlock victim which is why I've never used it to date.
The GrumpyOldDBA www.grumpyolddba.co.uk http://sqlblogcasts.com/blogs/grumpyolddba/
|
|
|
|