Machine-translated by Google. Questions are authored in English.
Top

Discussion

With SQL Server optimistic locking, an update lock is placed on the row when the row is read.

  • A.True
  • B.False

Answer: B

Correct answer: False

That describes SCROLL_LOCK, the pessimistic setting. Optimistic concurrency takes no lock while reading and merely checks at update time whether the row has changed since it was read, failing the update if it has. The assumption is that conflict is rare, which is what makes it the faster option when it holds.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.