default concurrency control for sql server 2005

冷暖自知 提交于 2019-12-31 04:09:05

问题


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 anticipation


回答1:


"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



来源:https://stackoverflow.com/questions/6459198/default-concurrency-control-for-sql-server-2005

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!