Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use BEGIN TRANSACTION with Sql Passthrough
Message
From
16/09/2004 06:47:29
 
 
To
16/09/2004 01:45:10
Raoshan Kumar
Softinfo Systems Pvt. Ltd.
New Delhi, India
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00942755
Message ID:
00942812
Views:
17

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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform