What effect does HOLDLOCK have on UPDLOCK?

Viewed 43714

I have seen many examples of the HOLDLOCK hint being used in combination with UPDLOCK (like this). However Microsoft's documentation for these hints make it seem like HOLDLOCK should be redundant, since UPDLOCK already persists the lock until the end of the transaction. (Also it seems to say that HOLDLOCK only applies to shared locks anyway.)

How does HOLDLOCK affect the query, if at all?

2 Answers
Related