SQL Server Is there a transaction isolation level equivalent to the READCOMMITTEDLOCK table hint?

9fkzdhlc  于 2023-10-15  发布在  其他
关注(0)|答案(1)|浏览(98)

The documentation makes it clear that you can use the READCOMMITTEDLOCK table hint to get the default SET TRANSACTION ISOLATION LEVEL READ COMMITTED behaviour when the non-default READ_COMMITTED_SNAPSHOT option is enabled. Is there a transaction isolation level equivalent to this? That is, when the READ_COMMITTED_SNAPSHOT option is enabled, is there a transaction isolation level that would let me act if it is disabled and I'm running under a READ COMMITTED isolation level?

uz75evzq

uz75evzq1#

when the READ_COMMITTED_SNAPSHOT option is enabled, is there a transaction isolation level that would let me act if it is disabled and I'm running under a READ COMMITTED isolation level?

No. But REPEATABLE READ and SERIALIZABLE will force reading with S locks.

相关问题