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

Discussion

With SQL Server pessimistic locking, no lock is obtained until the user updates the data.

  • A.True
  • B.
    False

Answer: B

Correct answer: False

That describes optimistic concurrency. Pessimistic locking is the opposite assumption: a lock is taken when the row is read and held while the application works on it, so no one else can change it in the meantime. The two names describe the assumption made about how likely conflict is.

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

Post your comment

Please log in or register to post a comment.