Look in SQL Books Online (BOL) for Locking Hints. In particular you want to read about TABLOCK and TABLOCKX. I recommend that you use caution. SQL Server handles locking itself. If you use locking hints inappropriately, you can seriously impact concurrency and performance.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.