Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Server 2005: Transaction Deadlock

I am getting this error very frequently but not consistently on 2 pages in an application which is in a production environment. I just have some screen shots of the error below.

Transaction(Process ID XX) was deadlocked on lock | communication buffer resources with another process and has been chosen as a deadlock victim. Rerun the transaction.

What should the approach be to resolve this error. The db server is SQL Server 2005.

like image 250
renegadeMind Avatar asked Jan 15 '09 15:01

renegadeMind


2 Answers

Here is the bible on deadlock troubleshooting:

http://blogs.msdn.com/bartd/archive/2006/09/09/Deadlock-Troubleshooting_2C00_-Part-1.aspx

like image 77
SQLMenace Avatar answered Sep 17 '22 15:09

SQLMenace


This article by Brad McGehee is a good place to start.

like image 24
Mitch Wheat Avatar answered Sep 17 '22 15:09

Mitch Wheat