Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loosing data SQL database ODBC
Message
De
19/01/2005 13:39:50
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Loosing data SQL database ODBC
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Network:
Windows 2000 Server
Divers
Thread ID:
00978647
Message ID:
00978647
Vues:
65
Hi All


I upgraded my app to vfp9 from vfp8 sp1 and I am not having problems loosing data. I am using Sybase Adaptive Server Anywhere as my database ODBC SQL pass through for data access. The program has been working fine until I upgraded to vfp9. Now, intermittently, I have users say that data just disappears that they entered. I have verified this by seeing sequence numbers missing in my PK. It acts alike the commits are not happening and the database does rollback a rollback when the connection is closed. Here is what I am doing:
SQLSETPROP(this.nconnection,"Transactions",2)

Do my inserts updates … here.

If success
SQLCOMMIT(this.nConnection)
Else 
SQLROLLBACK(this.nConnection)
End 
Is this the proper way to do this?

Thanks
Répondre
Fil
Voir

Click here to load this message in the networking platform