Deadlock Problem because of an Update Lock.
        Posted  
        
            by Randy Minder
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Randy Minder
        
        
        
        Published on 2010-05-11T20:56:07Z
        Indexed on 
            2010/05/11
            21:04 UTC
        
        
        Read the original article
        Hit count: 208
        
sql-server
We have a deadlock issue we're trying to track down. I have an deadlock graph (xdl) generated from Profiler. It shows the losing SQL statement as a simple Select statement, not an Update, Delete or Insert statement. The graph shows the losing Select statement as requesting a Shared lock on a resource **but also owning an Update lock on a resource**. This is what is baffling me. Why would a Select statement that is not part of an Insert, Update or Delete ever hold an Update lock on a resource? 
I should add that the Update lock it owns is on the table being selected against by the losing Select statement.
© Stack Overflow or respective owner