Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transaction Multidatabase?
Message
From
20/12/1999 13:07:02
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00306163
Message ID:
00306270
Views:
26
No. Transactions are not supported across DBCs.


>Hi All,
>
>After looking at the responses in Buffering vs Transaction thread, I have a question, I know I can test this and resolve by myself, but If any knows this, he would save me lot's of time:
>
>There were said that for habing success with Transactions the tables must be in a database.
>
>Q) Can I put into a transaction a tableupdate from a table of one database and another table for other database? should it work properly?
>
>(modified from Jim's sample):
>
>LOCAL llRollBack
>llRollBack = .F.
>
>BEGIN TRANSACTION
>
>IF NOT TableUpdate(1,.F.,"Customer") && customer is in DATA\001.dbc
> llRollBack = .T.
>ENDIF
>
>IF NOT llRollBack AND NOT TableUpdate(1,.F.,"Sales") && sales is in DATA\001\PT\pt.dbc
> llRollBack = .T.
>ENDIF
>
>IF llRollBack
> ROLLBACK
>ELSE
> END TRANSACTION
>ENDIF
>
>Thanks in advance,
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform