Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update 2 or more CA cursors
Message
 
 
À
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:
01484829
Vues:
40
>>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).

Thank you, Dragan.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform