Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unlock record
Message
From
10/11/2007 16:24:57
Issam Mansour
Jordan Business Machines
Amman, Jordan
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Unlock record
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01268277
Message ID:
01268277
Views:
48
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
Map
View

Click here to load this message in the networking platform