I'd like to use READ COMMITTED SNAPSHOT in a SQL Server database, which I understand is different from SNAPSHOT ISOLATION.
I want to enable READ COMMITTED SNAPSHOT because I'm having problems with deadlocks. I'm using EF and I think this will prevent many of the deadlocks.
Reading some other questions I understand that:
READ COMMITTED SNAPSHOT implies optimistic reads and pesimistic writes while SNAPSHOT ISOLATION implies optimistic reads and optimistic writes
READ COMMITTED SNAPSHOT works for the entire database, while SNAPSHOT ISOLATION is transaction level.
If i want to enable READ COMMITTED SNAPSHOT only is the next sentence enough? ALTER DATABASE [DB] SET READ_COMMITTED_SNAPSHOT ON;
or should I also need this sentence? ALTER DATABASE [DB] SET ALLOW_SNAPSHOT_ISOLATION ON;
I'm asking this because I'm not completely sure if the mechanism SQL Server uses for READ COMMITTED SNAPSHOT will be enabled without the last sentence
Thank you