I have one customer experiencing 5+ deadlocks per day. 170+ other customers don’t get any deadlocks at all. 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.
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.