Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
Beginer2012
Starting Member
45 Posts |
Posted - 2012-07-16 : 09:29:50
|
Hello,How can I lock a table to prevent user from reading it while deleting and inserting records ?Thank you |
|
nigelrivett
Master Smack Fu Yak Hacker
3385 Posts |
Posted - 2012-07-16 : 09:35:31
|
begin transelect * from tbl with (tablockx, holdlock) where 1=0....commit tran==========================================Cursors are useful if you don't know sql.SSIS can be used in a similar way.Beer is not cold and it isn't fizzy. |
|
|
|
|
|