General information
Forum:
Microsoft SQL Server
Environment versions
SQL Server:
SQL Server 2005
Hi,
I know that if you want to unlock all records should issue a rollback or commit statement. But what about to unlock one records from a list of records and keep the other records locked. I used the following statement to make the lock for the records:-
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE
begin transaction
select item_no,itemdesc
from ims.item [rowlock] with (xlock)
where item_no = '0100100001'
begin transaction
select item_no,itemdesc
from ims.item [rowlock] with (xlock)
where item_no = '0100100002'
Thank's for any help
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only