Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can VFP clear tables used by ODBC?
Message
From
22/01/2003 18:21:33
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00744135
Message ID:
00744548
Views:
10
Okay :) and now back to my original question (re-phrased)... is there any way to force the odbc driver to requery said view?

cheers,

Michael Henstock
AWS
>Ding! The light just cam on. I know what is going on here. The first query you do opens the view in the ODBC connection. You then close the return cursor, but the view is still open in the connection. You update the source table and the change does get committed. You then issue another SQL to retrieve the data from the view. Since the view is still open in th connection, you get the original value returned because the SQL does not know to issue a REQUERY('TestView') before returning the results from the view.
>
>When you close the connection, the view and the table gets closed. So when you open a new connection, the view is not yet open, so when you query it again, you get the correct results. Unlike Oracle or SQL Server, VFP views are not dynamic. There data remains static until a REQUERY() is issued.
A fish this fine deserves to be a fish nugget styled chunklet.
- Fry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform