Login or Sign Up to become a member!
LessThanDot Sit Logo

LessThanDot

Community Wiki

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot friendfeed Lessthandot facebook Lessthandot rss

Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.

Navigation

Google Ads

How To Find Out If READ COMMITTED SNAPSHOT Has Been Enabled For Your Database?

From Wiki

Jump to: navigation, search

You want to quickly find out if READ_COMMITTED_SNAPSHOT has been enabled for your database, here is a way to do it.

  1. SELECT name,
  2. CASE is_read_committed_snapshot_on
  3. WHEN 1 THEN 'yes' ELSE 'no' END AS Read_Committed_Snapshot_Enabled
  4. FROM sys.databases
  5. WHERE name = DB_NAME()


If you want find out the same information for all the databases on your server leave out the WHERE clause

  1. SELECT name,
  2. CASE is_read_committed_snapshot_on
  3. WHEN 1 THEN 'yes' ELSE 'no' END AS Read_Committed_Snapshot_Enabled
  4. FROM sys.databases


Contributed by: --SQLDenis 14:42, 9 September 2008 (GMT)

Part of SQL Server Admin Hacks

591 Rating: 2.5/5 (8 votes cast)