suppose if i am using rowlock in following manner
SELECT OrderID
FROM Orders WITH( holdlock , ROWLOCK)
WHERE OrderID =100
then can u please tell me ..... untill how much it will hold this lock . because as soon as i execute this query ; simultaneously i can select the same query from another page. that means it is not holding a lock ...
SO PLEASE ME HELP OUT.......
PLEASE REPLY ME AS SOON AS POSSIBLE
THANKS IN ADVANCE
hey anyone please help me out
ReplyDeleteit will hold the lock till u commit the transaction & here u havent started any transaction
ReplyDeleteBegin transaction !!!
-Regards
chirag I hav done that but it doesn't allows other user on lan to select other row from the same row...................
ReplyDeletebut i got da solution which UPDLOCK with Row lock ...............
thanks chirag...........