SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Set Transaction Isolation Level at connection
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Ken Blum
Constraint Violating Yak Guru

378 Posts

Posted - 05/15/2012 :  14:55:19  Show Profile  Reply with Quote
I would like to know if there is a way to SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED on a connection string to SQL Server. I want to do this for the data source connections within SSRS so the queries do not cause deadlocks on simple select statements. Or, is there a way this can be setup in SSRS? Obviously I could add NOLOCK hints to all of the SSRS queries but I don't want to do that.

influent
Constraint Violating Yak Guru

USA
361 Posts

Posted - 05/16/2012 :  14:09:54  Show Profile  Reply with Quote
I've added SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED to the beginning of all my SSRS queries. Admittedly it's annoying to have to remember and a pain if you have to go back and update tons of reports, but it works like a charm in my environment.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
47023 Posts

Posted - 05/16/2012 :  20:29:44  Show Profile  Reply with Quote
quote:
Originally posted by Ken Blum

I would like to know if there is a way to SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED on a connection string to SQL Server. I want to do this for the data source connections within SSRS so the queries do not cause deadlocks on simple select statements. Or, is there a way this can be setup in SSRS? Obviously I could add NOLOCK hints to all of the SSRS queries but I don't want to do that.


why do you want to read uncommited data? what are frequencies of DML operations in db?do you know the issues related to this?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000