Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

shared lock in read committed isolation level

$
0
0

as per lock in sql server if a shared (S) lock has been applied to a resource, other transactions can also acquire a shared lock or an update (U) lock on that item even if the first transaction has not completed. However, other transactions cannot acquire an exclusive lock until the shared lock has been released.

here I am getting confused--

other transactions cannot acquire an exclusive lock until the shared lock has been released.

My understanding is if select statement is running then update transaction can not taken? or something else.

Regards,
jamanu


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>