x
login about faq Site discussion (meta-askssc)

Isolation Levels

For reading dirty data you can set isolation levels at a Connection level using

SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED

Do any of these help with locking / blocking issues at a global level?

ALTER DATABASE MyDatabase
SET ALLOW_SNAPSHOT_ISOLATION ON

or

ALTER DATABASE MyDatabase
SET READ_COMMITTED_SNAPSHOT ON
more ▼

asked Nov 18 '09 at 02:24 PM in Default

Raj More gravatar image

Raj More
1.7k 75 79 82

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

I added tags for transaction and isolation-level to your question. There are some good answers in some of the previous questions:

What is snapshot isolation?

Which row-versioning transaction isolation level do you use?

Transaction Types in SQL Server 2005

short answer: Yes, both help by reducing the need for locking but both also increase usage of tempdb.

more ▼

answered Nov 18 '09 at 02:39 PM

Tom Staab gravatar image

Tom Staab
5.8k 5 8 10

Just to clarify, those options are not for dirty reads. They are used to avoid lock/block issues when dirty reads are unacceptable.

Nov 18 '09 at 02:40 PM Tom Staab

Good answer as usual, sir.

Nov 18 '09 at 04:27 PM Matt Whitfield ♦♦
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x916
x51
x32
x22
x13

asked: Nov 18 '09 at 02:24 PM

Seen: 1030 times

Last Updated: Nov 18 '09 at 02:35 PM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.