Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to commit all RVs & SPTs by one ConnectionHandle num
Message
De
07/12/2006 06:36:10
 
 
À
07/12/2006 06:04:49
Aye Mya Thida Kyaw
Ingenuity Microsystems Sdn Bhd.
Kuala Lumpur, Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
01175529
Message ID:
01175534
Vues:
10
Hi,

if you wanna mix SPT and Remote View updates in one transaction,
you can use this
USE your_remote_view IN 0 CONNSTRING poSqlConn
REPLACE someField IN your_remoteview
IF SQLEXEC(poSqlConn,'UPDATE someTable SET ....') = 1 AND ;
   TABLEUPDATE(.T.,.F.,'your_remote_view')
   SQLCOMMIT(poSqlConn)
ELSE
   SQLROLLBACK(poSqlConn)  
ENDIF
The connection must be created with the shareable flag set in SQLCONNECT()/SQLSTRINGCONNECT() function.

Regards
Christian
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform