Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Remote View - Lock Record???
Message
De
11/06/2003 17:02:58
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
SQL Remote View - Lock Record???
Divers
Thread ID:
00799134
Message ID:
00799134
Vues:
50
Hi Everyone,

What is the best or most appropriate way to control record or file locking when using SQL Pass Through on a remote view, to insert transactions into a MS SQL database from my application. There is a table in SQL that I need to push recrods into, but am not sure how I should control the locking requirements to ensure I have the right transaction numbers in a number
field. I might be adding 100 records, each needs the next transaction number, but how do I know someone else isn't doing the same from the main application if I can't lock the file termporarily?


I am thinking something like normal scripting - based on teh keycolum, but not sure if the content or syntax is right:
begin transaction
update mySQLTable
set lockkeycolumn = keycolumn
where custno = mycustno
.....
*-- do rollback or commit
TIA

Ric
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform