Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transaction Multidatabase?
Message
De
20/12/1999 13:07:02
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00306163
Message ID:
00306270
Vues:
25
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform