What is the default transaction isolation level for SQL Server with ADO.NET?

ぐ巨炮叔叔 提交于 2019-12-17 09:39:41

问题


What is the default transaction isolation level for SQL Server with ADO.NET? I am using a default installation of SQL Server and just the normal System.Data.SqlClient classes.


回答1:


READ COMMITTED is the default isolation level for the Microsoft SQL Server Database Engine.

Source:

  • Customizing Transaction Isolation Level @ MSDN.

Here is how it compares to other isolation levels:

  • Transaction Isolation Levels @ MSDN.

The MSDN documentation for SqlConnection.BeginTransaction() also states Read committed

... To reset the isolation level to the default (READ COMMITTED) ...

  • MSDN article


来源:https://stackoverflow.com/questions/10003026/what-is-the-default-transaction-isolation-level-for-sql-server-with-ado-net

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