default concurrency control for sql server 2005

后端 未结 1 1479
不知归路
不知归路 2021-01-26 19:03

what is the default concurrency control for SQL Server 2005? Is it optimistic concurrency control or pessimistic concurrency control? Can this be set?

Thanks in anticipa

相关标签:
1条回答
  • 2021-01-26 19:23

    "Pessimistic" seems to be the default in 2005, although snapshot isolation can be activated if desired:

    In the default pessimistic model, the first writer will block all subsequent writers, but using SI, subsequent writers could actually receive error messages and the application would need to resubmit the original request.

    http://msdn.microsoft.com/en-us/library/cc917674.aspx

    0 讨论(0)
提交回复
热议问题