Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TableUpdate within transaction
Message
 
 
À
08/12/2005 14:49:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01076280
Message ID:
01076371
Vues:
19
>>Hi Aleksey,
>>
>>I would like to receive a confirmation if the behavior discussed in the Re: Transaction behavior Thread #1075467 is by design and then the Help is wrong or the behavior is wrong and the Help is right. In the code we're doing inserts into multiple tables with buffered mode 5. Then we're saving data within transaction. If we're trying to open the tables in other VFP session on the same PC we're getting "File is in Use" error message.
>>
>>Thanks in advance.
>
>Hi Naomi,
>
>VFP doesn't release any locks for transactable files until transaction is closed. If TABLEUPDATE locks the table or table's header then the lock will be held at least until the transaction is closed and an attempt to open this table from another client may fail, depending on the current SET TABLEVALIDATE setting for that client. There should be no problem to open the table if SET TABLEVALIDATE setting for the other client includes flag 4.
>
>Naomi, if you think that this doesn't explain behavior of your app, you should provide complete repro code for the issue (this doesn't mean that you have to copy and paste code from your project or use tables and data from your project or use many tables when the problem can be reproduced with one).
>
>Thanks,
>Aleksey.

Thanks, Aleksey. In other words we need to use this setting for TABLEVALIDATE in our application if we want to be able to open the files. The records still may be locked, right? But only the records that were updated, not all the records in the file. Am I right here?
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