sql query for locking the table.
for example my table name is: Employee_Details i want lock this table.
SQL query for locking the table
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Jignesh TrivediRank #16 · 50.3K reputationPosted Feb 6, 2012, 5:34 PM EST
try this.
select * from TableName with(READCOMMITTEDLOCK )
for more information
please refer.
http://msdn.microsoft.com/en-us/library/ms187373.aspx
hope this help.