当我运行 - SET TRANSACTION ISOLATION LEVEL SNAPSHOT - 命令成功执行但以下查询返回:
SELECT is_read_committed_snapshot_on,
snapshot_isolation_state_desc,
snapshot_isolation_state
FROM sys.databases
WHERE name = 'MyDB'
输出:
is_read_committed_snapshot_on 0
snapshot_isolation_state_desc OFF
snapshot_isolation_state 0
你能告诉我为什么 set transction 命令没有反映吗?另外,我假设我的“ ”命令成功运行ALLOW_SNAPSHOT_ISOLATION
时已经“开启”。对吗?SET TRANSACTION ISOLATION LEVEL SNAPSHOT