Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / March 2008

Tip: Looking for answers? Try searching our database.

read_committed_snapshot on

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John A Grandy - 24 Mar 2008 23:13 GMT
set transaction isolation level read committed
alter database mydatabase set read_committed_snapshot on

From the Sql Server docs :
"Row versioning is used to present each statement within the transaction
with a transactionally consistent snapshot of the data as it existed at the
start of the statement.  Locks are not used to protet the data from updates
by other transactions."

But given that read queries can have complex execution plans, how can the
server know the set of rows that need to be versioned without blocking all
other transactions and figuring it out ( which would be the same as using
shared locks ) ????
Dan Guzman - 25 Mar 2008 04:38 GMT
> But given that read queries can have complex execution plans, how can the
> server know the set of rows that need to be versioned without blocking all
> other transactions and figuring it out ( which would be the same as using
> shared locks ) ????

When you set a database to READ_COMMITTED_SNAPSHOT, all row changes are
versioned independently of select queries.  Select queries in the
READ_COMMITTED isolation level use the latest row versions available at the
time the SELECT statement started.

Signature

Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

> set transaction isolation level read committed
> alter database mydatabase set read_committed_snapshot on
[quoted text clipped - 9 lines]
> other transactions and figuring it out ( which would be the same as using
> shared locks ) ????
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.