Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL record locking and transactions
Message
De
04/03/2004 12:05:23
 
 
À
03/03/2004 22:29:49
Suhas Hegde
Dental Surgeon
Sirsi, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00874330
Message ID:
00883136
Vues:
18
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform