I\'m using a Microsoft SQL Server 2005 database with isolation level READ_COMMITTED and READ_COMMITTED_SNAPSHOT=ON.
READ_COMMITTED
READ_COMMITTED_SNAPSHOT=ON
Now I want to use:
Try using:
SELECT * FROM WITH ROWLOCK XLOCK HOLDLOCK
This should make the lock exclusive and hold it for the duration of the transaction.