Is there any way by which we can lock only single row of the table (IN SQL SERVER 2008)
I am trying something like this
BEGIN TRAN
select TOP 1 from [TableName] with (ROWLOCK,UPDLOCK)
COMMIT
But seems like SQL server is ignoring ROWLOCK and acquiring IU lock on page and IX on Table.
Your help will be appreciated :)