Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select - Accessing older view if more than 1 instanc
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00005022
Message ID:
00005028
Views:
35
>Consider a parameterized view named CLIENT_VIEW. I'm going to open two instances because I need to.
>
>USE CLIENT_VIEW Alias Clients1
>* Now assume you want a different data set, so assume
>* the view parameter has been changed (code not
>* shown)
>Select 0
>USE CLIENT_VIEW Alias Clients2
>
>Now, even though you can SELECT CLIENTS1 and SELECT CLIENTS2 and work with both views just like they are tables, the first instance (alias CLIENTS1) is no longer accessible to a select-SQL statement. This seems kind of screwy. For example, both of these views are in fact cursors that exist as temporary files. Neither of them exist as a table called CLIENT_VIEW. Yet Foxpro's SQL can only find the most recent instance of CLIENT_VIEW. You have to reference views by the name of the view, not the alias name, so you cannot access both views in the same SQL statement.
>
>Is there a workaround for this?


Private data sessions?

Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Previous
Reply
Map
View

Click here to load this message in the networking platform