Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Set Transaction Isolation Level at connection

Author  Topic 

Ken Blum
Constraint Violating Yak Guru

383 Posts

Posted - 2012-05-15 : 14:55:19
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

367 Posts

Posted - 2012-05-16 : 14:09:54
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

52326 Posts

Posted - 2012-05-16 : 20:29:44
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
   

- Advertisement -