Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this a bug or a feature....
Message
 
À
20/02/2002 08:12:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00622489
Message ID:
00622747
Vues:
15
>Can you confirm that when I open a view or issue a SQL statement, that all the concerned tables as opened as well and that when I close the resulting cursor that these concerned tables remain opened unless I specifically close them myself?
>
>Why? whywhywhywhywhywhy?
>

Pablo,

The SELECT command would be moving the record pointer in an instance of the table if it did not open it again for its own use. The reason the tables are not closed is to optimize future SELECTs which very well may be using the same tables (USE AGAIN is faster than USE newly).

If you adopt private data sessions there is no problem in doing a CLOSE DATA in a form's Unload event which will close all tables that that form used.

There are many times when I think something is stupid. Usually after some research I find out it was that I did not understand the entire situation.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform