Today, Jeff Atwood posted about a deadlock issue he was having. He had a couple of ideas as to how to solve his issue, including the nolock statement. What I found most interesting were the comments that followed. Here is a summary:
I can’t believe how critical people were of Jeff. I guess I was a little surprised that the author of the great Coding Horror didn’t know the answer to something, but that’s no reason to be critical of the guy.
A couple of the more decent links included:
We have a couple of deadlock issues in our current database that I’d like to sit down and fix, so these might come in handy.
Update: Someone who knows allot more about SQL posted a blog entry in response to Jeff’s original post. The author believes that using nolock is never a good idea and goes on to give some advice on how to start solving deadlock issues.
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.