Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Must tables be used before call a SQL statement?
Message
 
 
To
04/06/2007 14:42:38
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01230337
Message ID:
01230344
Views:
28
>I have always thought that the (free) tables used in a SQL Select statement must already be opened before the SQL is executed.
>
>The other day, I entered a Select.. statement from the command window when no tables were opened, and the darned thing worked!!
>
>So which way is it? If the free tables are in the search path, is it ok to call a SQL select in the load() of a form without first "use"ing the tables?

It will work either way if FoxPro can find tables on the path. However, if it cannot find them, you will get an error on USE command and Open Table dialog on SELECT. In VFP9 SET TABLEPROMPT command can supress the dialog.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform