Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ado recordset sends update when movenext?
Message
 
À
10/04/2008 04:04:02
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 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01308848
Message ID:
01309624
Vues:
10
>Hi,
>
>I believe it has something to do with buffering. The behaviour you described is Record Buffering.
>
>Hope to help.
>
>Dennis

No... apparently with ADO, data will commit as soon as you move the record pointer. The only way to stop that behavior is to start a transaction right away. Then you can manually commit when you want to. This goes against what I learned about foxpro transactions which are supposed to be kept as short as possible.
begin transaction
if tableupdate 
    end transaction
else
    rollback
So with ADO I have to start a transaction then edit one or more records keeping the transaction open the whole time, then commit the changes when I am done.

Apparently ADO.Net doesn't work that way but I haven't tried it.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform