Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CursorAdapters, ADO and Transactions
Message
From
11/08/2004 03:21:22
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
CursorAdapters, ADO and Transactions
Miscellaneous
Thread ID:
00932251
Message ID:
00932251
Views:
88
Hi,

I have three CursorAdapters that use ADO. When I update the changes to the database for these 3 adapters, I want to wrap it in a transaction, so if one of the updates fails, I can rollback to the previous state.

So I used the BeginTrans, CommitTrans and RollbackTrans methods on the ADO COnnection I use for the three ADO Recordsets the CursorAdpters use. But calling BeginTrans generates an error stating I can not create anymore transaction during this session.

It seems like each CursorAdapter internally calls BeginTrans and manages his own transactions. This looks fine, but how can we have a transaction over more than one CursorAdapter?

TIA,

Stefan
Next
Reply
Map
View

Click here to load this message in the networking platform