Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update 2 or more CA cursors
Message
From
11/10/2010 14:19:27
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01484765
Message ID:
01484778
Views:
51
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform