Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Semaphore lock?
Message
 
 
À
08/03/2018 12:26:20
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Titre:
Divers
Thread ID:
01658623
Message ID:
01658624
Vues:
53
>Hi,
>
>I am working on implementing a semaphore locking so that the same record (in VFP 9 application with SQL Server) cannot be edited at the same time by more than one user. I think I have a draft design using a .DBF table for semaphore locking. The nice thing about a DBF table is when a user locks a record and then closes the application, the record will be automatically un-locked (I think after some set time).
>
>Is there a feature in SQL Server where the same can be done? That is, if I create a table in the SQL Server for "locking" or indicating that a user is working on this or that order, can the record/row be automatically un-locked if user closes the app?
>
>TIA

Take a look at https://docs.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sp-getapplock-transact-sql
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform