Set READ_COMMITTED_SNAPSHOT Isolation Level in Database Project

By Greg No comments

A current project I’m working on has it’s database stored in Source Control (you should be using source control) using a Visual Studio .sqlproj file. Visual Studio is able to generate a SQL script to update the database to make the objects the same as what is in Source Control. One of the things it does is compares database settings and updates them to match the settings in Source Control. This has meant that our attempts to turn on Read_Committed_Snapshot Isolation were being rolled back every time someone did a deployment. The setting is a little hidden away, so here is where to find it:

  1. Open the project in Visual Studio
  2. Go to the Project Properties page (right click the project and choose properties)
  3. Click on Database Settings
  4. Change to the Operational tab
  5. Tick “Read committed snapshot”

DatabaseSettings_ReadCommittedSnapshotIsolationOption

Leave a Reply