Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL record locking and transactions
Message
From
04/03/2004 12:05:23
 
 
To
03/03/2004 22:29:49
Suhas Hegde
Dental Surgeon
Sirsi, India
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00874330
Message ID:
00883136
Views:
17
Open Query Analyzer

- open two connections
- select number 1, run this
USE Northwind
BEGIN TRAN
SELECT * FROM dbo.Categories (UPDLOCK,ROWLOCK) WHERE CategoryID=3
- select number 2, run this
USE Northwind
BEGIN TRAN
SELECT * FROM dbo.Categories (UPDLOCK,ROWLOCK) WHERE CategoryID=3
ROLLBACK
You can see session 2 i locked

- select number 1, run this
ROLLBACK
You can see session 2 continue

Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform