Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with Data Sessions and SQL
Message
From
08/01/2001 19:10:33
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Problem with Data Sessions and SQL
Miscellaneous
Thread ID:
00460907
Message ID:
00460907
Views:
61
I have a form that calls a prg as a posting routine. In the prg I use a transaction to wrap around the posting code and ensure that everything in the posting routine works or the associated records rollback. This part works good. I needed a pre-post report which allows the user to see a report of what will happen if they press the post button. This is implemented by calling a report within the transaction and then if the post button wasn't pressed (a parameter in the calling sequence), the system rolls back and nothing is committed. The problem is that the reporting needs an SQL command to gather the data (many to one) and when I run the SQL and watch it I noticed that while the tables used for the SQL contain one set of data, the result of the SQL shows that the SQL was run on a different set of tables, (pre-ones). The datasessions never switch, and both the input tables and resulting cursor are found in the same datasession, it just seems that the SQL drew it's information from a different data session, not the one that appears current. What am I doing wrong, or is there a way to force the SQL to act on the transaction-wrapped data tables?

Thanks for your help

Sandi Cassidy
scassidy@canaccount.com
Next
Reply
Map
View

Click here to load this message in the networking platform