Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select from View yields old data from source tables?
Message
From
30/07/1999 19:27:59
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00248442
Message ID:
00248448
Views:
17
>I am doing a select SQL from a View that is optomistic table buffered agianst one table. The values in the view are different from those in the table because I have not sent any updates to the table yet. When I do the select naming the view in the FROM clause (the table isn't open and dosn't have the same name) the result set contains the values in the table, ie the oldvalues in the view.
>
>So my question is, how can I select the values actualy in the view short of scanning it.

The short answer is: you can't. Data in the view that isn't commited doesn't really exist as far as SQL SELECT statements are concerned. You have to use SCAN to go through the records, one by one. Sorry. Unless somebody knows a better way than I do...
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform