Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update 2 or more CA cursors
Message
De
11/10/2010 14:19:27
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01484765
Message ID:
01484778
Vues:
52
>Hi,
>
>Is this the right approach to use BEGIN/END TRANSACTION when updating more that one cursor adapter cursors? And if the cursor adapters use SQL Server tables, will the ROLLBACK undo the changes to the SQL Server table(s)?

It shouldn't - you'd have to do your own rollbacks or commits on the SQL side, then do the same in the VFP transaction. Not that I have experimented much with this, it's just a common technique I saw in a few frameworks: wrap the SQL transaction in a VFP transaction. What you do SQL side on your way out, repeat in VFP (i.e. rollback or commit).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform