i have a table A with a clustered index on the primary key and a non-clustered index on a second column (act_id) (foreign Key to table B)
Two update statements are generating following deadlock: Deadlock 1
This deadlock seems not to be an bookmark lookup deadlock, because it's on the same index and the same objid. Including the pk in the non-clustered index has not brought any success. I did understand, that the objid is not the recordid, but a range in the index.
The queries (e.g. update a set act_id = 1 where act_id = 2), leading to this deadlock, have the following execution plan: Execution plan
Sometimes the same deadlock is on another table with only one clustered index: Same deadlock on another table
Has anybody an idea how this deadlock can be avoided?