Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

query insert the TRANSACTION, when there is a lock on the table?thank u very much

$
0
0

hi

  i had the code liek this:

BEGIN TRANSACTION;

insert .........

COMMIT TRANSACTION;

  i'd like to ask,when there is a lock on the table?

  when the query of insert  is executed,or when the query COMMIT TRANSACTION is executed?

   thaank u very much in advance ur kindness help

best regards

martin


Viewing all articles
Browse latest Browse all 8428

Trending Articles



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