Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to lock a table explicitly

Status
Not open for further replies.

Rishu

Technical User
Feb 8, 2002
4
IN
hello
my query is
" how to put locks on table any type of lock "

thanks in advance for solving the query

do mail me the code to put lock

at
rishuchopra@indiatimes.com


 
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.

See articles at the following links.



Terry L. Broadbent - Salt Lake City, UT
Home of the 2002 Winter Olympics (Feb 8-24)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top