Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple table updates error using remote views
Message
 
À
17/06/2002 06:41:20
Raza Malik
Universal Accounting Software
Edgewater, New Jersey, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00669122
Message ID:
00669506
Vues:
12
Sebastian's right, you can't use BEGIN...TRANSACTION with remote views. (I forgot about that when I replied in the other thread you mentioned this in.) You should try SQLCommit() and SQLRollback() instead. (Assuming you're writing to something like SQL Server.)

>I am trying to update 7 tables by using the following command:
>
>
>BEGIN TRANSACTION
>   IF TABLEU(.T.,'A') .AND.TABLEU(.T.,'B') .AND.TABLEU(.T.,'C') .AND. ....
>      ENDTRANSACTION
>   ELSE
>      ROLLBACK
>   ENDIF
>
>
>If the error is found on the first table, all tables rollback. But if the error is on the 3rd or higher table, the rollback works only on tables after the error. The table 1 & 2 get commited. Can anyone explain why this happens & how to work around it ?
>
>THANK YOU IN ADVANCE
>
>Raz
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform