Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transaction Multidatabase?
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Transaction Multidatabase?
Miscellaneous
Thread ID:
00306163
Message ID:
00306163
Views:
51
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,
Pablo Roca
Clavo Congelados, S.A. (La Coruna - Spain)
Sysop of PortalFox

Join MasFoxPro campaign
http://www.masfoxpro.com
Next
Reply
Map
View

Click here to load this message in the networking platform