sql query for locking the table.
for example my table name is: Employee_Details i want lock this table.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Feb 6, 2012, 10:34 PM
try this.
select * from TableName with(READCOMMITTEDLOCK )
for more information
please refer.
http://msdn.microsoft.com/en-us/library/ms187373.aspx
hope this help.