Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use BEGIN TRANSACTION with Sql Passthrough
Message
De
16/09/2004 06:47:29
 
 
À
16/09/2004 01:45:10
Raoshan Kumar
Softinfo Systems Pvt. Ltd.
New Delhi, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00942755
Message ID:
00942812
Vues:
18

Hi all

Can you suggest me how to issue the "BEGIN TRANSACTION" and "END TRANSACTION" using Visual FoxPro 7.0 SQL Passthrough functions. How do I ensure that the transactions are safe and secure

Thanks

Raoshan


Use SQL manual transaction within the VFP transaction:
BEGIN TRAN && open vfp TRANSACTION
IF SQLEXEC(,'BEGIN TRAN;write command;COMMIT')>0
    END TRAN
ELSE
     IF SQLEXEC(,'ROLLBACK')<1
        * panic
     ENDIF
     ROLLBACK
END
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform