Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Flock equivalent in SQL
Message
 
 
À
26/08/2009 10:47:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
MS SQL Server
Divers
Thread ID:
01420778
Message ID:
01420823
Vues:
83
This message has been marked as a message which has helped to the initial question of the thread.
It was wrong way to do it in VFP because locking a table blocks all other users from accessing it.
See Record ID generator question Message #611104


>I use the follow code to get Unique Keys with VFP tables
>
>Local lgetUniqueKey
>Use myCounter
>IF Flock()
> Replace myCounter.counter With myCounter.counter+1
> lgetUniqueKey= myCounter.counter
> Flush In myCounter Force
> Unlock
>Endif
>
>Could you suggest some equivalent code if the MyCounter table is an MSSQL table?
>Please no autoinc field or global unique identifiers
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform