Set READ_COMMITTED_SNAPSHOT Isolation Level in Database Project

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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s