Link to home
Start Free TrialLog in
Avatar of chandradineshbabu
chandradineshbabuFlag for India

asked on

sqlserver 2008 Isolation question

Hi

I am using isolation level at database level as read committed snapshot however i am using no lock hint at statement level.which one will overide first? one more thing is i would like to change read commited snapshot to default isolation at database level.how to do it?
Avatar of lcohan
lcohan
Flag of Canada image

Here's how to change it at DB level:
http://msdn.microsoft.com/en-us/library/bb522682.aspx
ALTER DATABASE AdventureWorks SET READ_COMMITTED_SNAPSHOT {ON | OFF }

As far as swithcing back and use NOLOCK hint I suggest you read the article below before deciding to go that way to see and understand what NOLOCK means and does:

http://blogs.msdn.com/b/davidlean/archive/2009/04/06/sql-server-nolock-hint-other-poor-ideas.aspx
ASKER CERTIFIED SOLUTION
Avatar of kaminda
kaminda
Flag of Sri Lanka image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chandradineshbabu

ASKER

my question is i have a database with read commited snapshot isolation level  however the databse is hitting with a qurey with No Lock Hint.which will override(reading data from tempdb due to read commited snap shot or dirty reads due to No Lock Hint)?
Excellent Really helpfull to me