Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can VFP clear tables used by ODBC?
Message
De
22/01/2003 18:21:33
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00744135
Message ID:
00744548
Vues:
11
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform