1

I have a web application and all of its queries begin with

SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED

Is there any way to create all connections with this isolation level? Can I implement this to connection pool in web.config or somewehere else?

Luke Girvin
  • 13,221
  • 9
  • 64
  • 84
ogun
  • 1,314
  • 2
  • 16
  • 40
  • 1
    http://stackoverflow.com/questions/3303782/can-i-set-the-isolation-level-in-the-connection-string and this http://stackoverflow.com/questions/2471055/why-use-a-read-uncommitted-isolation-level – adt Jul 16 '12 at 09:33

2 Answers2

2

You cannot do.

you need to explicitly define the isolation level when you start a transaction.

Vikash Sinha
  • 193
  • 8
0

You can find this option in the properties of the database (if you are using SQL Server Management Studio) or alternatively using the ALTER DB statement.

ALTER DB dname
SET READ_COMMITTED_SNAPSHOT OFF

EDIT: Thanks to @Martin Smith, the command doesn't do what you want it to. See here for more details (differences between Read Committed with Snapshot off and Read Uncommitted).

Matthew Steeples
  • 7,858
  • 4
  • 34
  • 49