Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loosing data SQL database ODBC
Message
From
19/01/2005 13:39:50
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Loosing data SQL database ODBC
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Network:
Windows 2000 Server
Miscellaneous
Thread ID:
00978647
Message ID:
00978647
Views:
66
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
Reply
Map
View

Click here to load this message in the networking platform