Default isolation level in Microsoft SQL Server 2005

两盒软妹~` 提交于 2019-12-11 04:24:57

问题


What is the default isolation level in SQL Server 2005 and in which scenario would you want to change it ? And little explanation about the default isolation level would be appreciated.

Thanks in anticipation


回答1:


Default = READ COMMITTED

You don't need to change it often. Some folk recommend "always use READ UNCOMMITTED" but this is dangerous.

As to why, I'd suggest Wikipedia but in summary there are 3 data read issues that can occur:

  1. Dirty reads
  2. Non-repeatable reads
  3. Phantom reads

Each of these is removed as you increase isolation (to SERIALIZABLE) at the cost of reduced concurrency.

The default level prevents "Dirty reads" and frankly is good enough.



来源:https://stackoverflow.com/questions/6330667/default-isolation-level-in-microsoft-sql-server-2005

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