Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this a bug or a feature....
Message
 
To
20/02/2002 08:12:39
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00622489
Message ID:
00622747
Views:
16
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform