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

possible to lock a table until while loop is finished

$
0
0
I have a while loop that loops through temp table T and deletes data from table A using values from a temp table T. It seems like users can read from table A as the while loop is still executing - maybe in between loops? Is it possible to maintain a lock on table A until the while loop is finished?

Thanks!

Viewing all articles
Browse latest Browse all 23857

Trending Articles



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