SQL Server - Dirty Reads Pros & Cons

前端 未结 4 1267
慢半拍i
慢半拍i 2020-12-11 03:21

Why should I or shouldn\'t I use dirty reads:

set transaction isolation level read uncommitted

in SQL Server?

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-11 03:59

    The Thing is when you want to read the data before committing, we can do with the help of set transaction isolation level read uncommitted, the data may, or may not change.

    We can read the data by using the query:

    Select * from table_name with(nolock) 
    

    This is applicable to only read uncommitted isolation level.

提交回复
热议问题