I have one customer experiencing 5+ deadlocks per day. 170+ other customers don't get any deadlocks at all开发者_Go百科. I've implemented deadlock tracing and can see the select/update/insert deadlocks occurring. I implemented a with (rowlock) hint and this sorted the initial deadlock out. However, the thing still deadlocks further on down the line.
I've discovered the customer is running custom SQL which has been causing some of the problems, but not all of them.
My question really is does anyone know whether upgrading the customer from sql server 2000 to sql server 2008 will likely fix the issue?
Thanks,
Col.
i don't think that there will be any differences between using sql 2000 or 2008. Actually you can solve any deadlock just reasoning on the causes which created them
It depends on why they are getting the deadlocks at the moment. Without investigation of the cause it is impossible to say.
A couple of advantages that SQL 2005/2008 do have in this area over SQL2000+ is the introduction of snapshot isolation that can remove some deadlock possibilities and better monitoring options to get to the bottom of why a deadlock is occurring.
精彩评论