Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

How long lock is held on the first updated table inside the transaction

$
0
0

example;

begin tran

Update A ..... where .....

update B .....  where .......

Update C ......  where ....

commit tran

According to the example, i want to ask that, while updating C table,

does transaction still hold locks on the updated rows on A table ? Or Locks had been released before updating C Table?

I have searched forms and could not get satisfying answer.


Viewing all articles
Browse latest Browse all 15889

Trending Articles



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