I want lock selected rows to send commit tran command, I try this code:
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE BEGIN TRAN select * from [TestObj] with(r