Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL - set filter to
Message
From
10/03/2016 09:07:25
 
 
To
09/03/2016 23:08:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01632771
Message ID:
01632783
Views:
60
>VERY interesting phenomenon - using a common data environment, using an SQL Select statement, after releasing the form it was called from, required a 'set filter to' statement to 'reset' the data to be able to 'seek' in it again without retaining a 'set filter to xyz' that was never issued! I have used SQL Select statements endlessly before, but nevvver with this result.
>
>ANY ideas??
>

The only interaction I know of between filters and SQL SELECT is the one around queries that involve a single table and are fully optimizable:

From http://www.tomorrowssolutionsllc.com/Articles/Speed%20Up%20Your%20SQL%20Code.pdf:

When a query uses a single table, has only fields from that table in the field list (and no expressions or literals), puts the results into a cursor, and can be fully optimized, VFP filters the source table rather than creating a new file on disk. In some cases, such as reporting, this isn’t a problem. But if you want to use that cursor in a subsequent query or display it in a grid, this trick causes problems.

But that shouldn't have an effect on the table itself, only the cursor that's the query result.

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform