4. 輸入如下腳本, 修改行版本控制級(jí)別:
ALTER DATABASE test SET ALLOW_SNAPSHOT_ISOLATION ON --替換庫(kù)名
ALTER DATABASE test SET READ_COMMITTED_SNAPSHOT ON --替換庫(kù)名
ALTER DATABASE test SET SINGLE_USER WITH ROLLBACK IMMEDIATE
ALTER DATABASE test SET ALLOW_SNAPSHOT_ISOLATION ON
ALTER DATABASE test SET READ_COMMITTED_SNAPSHOT ON
ALTER DATABASE test SET MULTI_USER
--查看是否已修改過來
SELECT [name],snapshot_isolation_state,snapshot_isolation_state_desc,is_read_committed_snapshot_on
FROM master.sys.databases