Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lock in SQL SERVER.
Message
De
30/03/2004 10:45:20
 
 
À
29/03/2004 15:26:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00890575
Message ID:
00890811
Vues:
20
Read Thread #874330 Message #874739 and others

SQL use Sets, not flat tables.

If you not define a Index you do not have control for lock a specific row.

If you want pessimistic Lock, you must define good indexes,
and on WHERE clause lock specific index keys.

On simple case, define a primary key, and on WHERE lock a specific PK value.
With this and lock keys range you can lock PK that not exists
( useful in order to reserve of the values )

Fabio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform