问题
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