Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Record locking within an SQL stored procedure
Message
De
29/12/2005 16:32:29
 
 
À
29/12/2005 16:22:31
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
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01081764
Message ID:
01081856
Vues:
7
>Hi
>
>I should have added on the original post that the control needs to remain in SQL as other platforms will be calling the same stored procedures, i.e. ASP, VB etc. Sometimes the best solution isn't necessarily what a text book tells you, hence I wanted people who'd 'had a go' to let me know what they'd done to complete record locking.
>
>In reality, the record that's being locked is a lookup record that tells SQL what the next unique ID for a selected table is, so, the locking itself would be very quick, and the number of fields to be updated would be minimal.

In SQL Server, "next unique ID" values for a given table are often implemented easily by using an integer autoincrement column. Is there any particular reason you're not using this approach?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform