Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 771191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:36:49+00:00 2026-05-14T18:36:49+00:00

We are trying to resolve a deadlock problem. The transaction that is getting rolled

  • 0

We are trying to resolve a deadlock problem. The transaction that is getting rolled back is attempting to issue an Update (U) lock on a resource that another transaction has an Exclusive (X) lock on. According to Books Online (http://msdn.microsoft.com/en-us/library/ms175519.aspx), an Update lock is supposed to prevent deadlocks, not cause them.

So, my question is, why/when is an Update lock applied to a resource? We’re a little confused about this because the resource that is attempting to have the Update lock applied to will not be updated by the process that is having the transaction rolled back.

Thanks for your help on this.

Randy

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T18:36:50+00:00Added an answer on May 14, 2026 at 6:36 pm

    There’s a whole universe of “what if” behind what causes deadlocks (by which I mean, there’s no way to tell from your initial post what’s really going on). Could be table locks, could be locks on indexes; could be oustanding transactions you are not aware of; could be table header locks, could be tempdb issues (very unlikely), who knows?

    The best method I’ve ever found to diagnose deadlocks works like so:

    • Fire up SQL Profiler, configure it with the “Deadlock Graph” and “Lock: Deadlock” events, and be sure to include the TextData column
    • While Profiler is running, cause your application to generate the deadlock
    • Select the “Deadlock Graph” profiler row, and you’ll get a simple yet confusing graphic display of what’s going on. This might help you figure out what’s really going on.
    • If that doesn’t help, the graphic is generated by Profiler based on a very detailed lump of XML. Extract this string (select the Deadlock Graph row, Ctrl+C to copy, paste in your text editor of choice, and delete all the columns but the XML), and then review the XML (in your preferred XML editor).

    To-date, once I’ve gotten and worked through that XML, I’ve always been able to figure out what was causing the deadlock. It’s a good way to learn how weird and convoluted some of SQL’s internals can get.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to find a solution that will resolve a recurring deadlock situation
Im trying to resolve an issue where when using NHibernate with a SqlServerCeDriver that
I am trying to trace a deadlock that is occurring in our SQL 2005
I am trying to resolve Euler Problem 18 -> http://projecteuler.net/index.php?section=problems&id=18 I am trying to
In trying to resolve Facebook's Puzzle Hoppity Hop, http://www.facebook.com/careers/puzzles.php?puzzle_id=7 , I'm reading one integer
I'm trying to write a client-server application in Java with an XML-based protocol. But
I'm using windbg (the latest available from the MSDN download page). I'm trying to
I am investigating the design of a work queue processor where the QueueProcessor retrieves
I have to be dead tired because I really can't figure out such simple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.