Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Intermittent problem indexing a view
Message
From
09/12/2008 10:45:21
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01366193
Message ID:
01366196
Views:
10
>Recently a user has reported an intermittant problem that appears to be related to the indexing of a local view. The code in question has been running for years w/o issue. The errorlog is reporting the error as "FILE IS NOT OPEN" and it appears to occur on the INDEX line below:
>
>
SELECT v_myview
>DELETE TAG ALL
>=requery("v_myview")
>SELECT v_myview
>=cursorsetprop("BUFFERING",3)
>INDEX ON UPPER(lastname) TAG lastname   &&   <<=== error 
>
>Although the logged error reads "FILE IS NOT OPEN", the view in question is open.... according to the collected list of open tables/views also stored in the errorlog details.
>
>Assuming that the reported error is in fact THE error, I had suspected that a CDX write issue was involved. There's housekeeping code in place that deletes 2 day old *.TMP files from the temp folder (on the user's C drive). However, i realized that the housekeeping code was deleting just TMP files and that a good number of CDX files (now deleted) were still in that folder.
>
>Any ideas?

Why not index it once in the load of the form ? I see no need to delete and recreate the indexes for every requery()
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform