Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG2: SQL SELECT does not see open alias
Message
From
01/04/2005 08:33:21
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01000541
Message ID:
01000605
Views:
42
Hi sergey,

>It looks like a bug in EXECSCRIPT() to me.

I'm not sure if it is. It looks like a bug in SQL-SELECT to me, since it now does not pickup the open alias anymore, but goes looking for the actual file given by the DBF() function.

That indeed would fail when the alias comes from an internal file and the SQL-SELECT runs externally from the exe.

Walter,


>>In VFP8 I could do the following with a table included into the exe (thus not available on disk).
>>
>>
USE MyInternalTable
>>EXECSCRIPT("SELECT * FROM MyInternalTable")
>>
>>In VFP9 this does not work anymore. VFP9's SQL SELECT simply does not see the open alias and attempts to open it from disk.
>>
Previous
Reply
Map
View

Click here to load this message in the networking platform