Quantcast
Viewing all articles
Browse latest Browse all 15889

SQL 2005 - How to trap or catch deadlocks when they happen regardless of which sql statement caused them?

I suspect I am having issues with deadlocks.  One of our .NET applications gets a timeout error after attempting, and then re-attempting an inline update statement.  Ive seen this sort of problem before and it was another process that was doing a long running job against one of the same tables.

Now the problem is I cant tell when this will occur again, nor do I know what other process might be doing this.

What I do know is the specific table that our application is trying to do the update against.

What is a good way to find out more details when this happens? I need enough info to trace it back to the application that is doing it.



Viewing all articles
Browse latest Browse all 15889

Trending Articles



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