Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL not optimized
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
01137029
Message ID:
01137032
Views:
28
Make sure that CPDBF() = CPCURRENT(). You can use cpzero.prg from VFP Tools\Cpzero subdirectory to change DOS table codepage.

>A really weird problem. I have a Foxdos table with some simple indexes stored in a CDX file.
>
>orderno index on orderno
>custno index on custno
>trandate index on trandate
>
>Here is the weird part. I try and run a SQL against the table in VFP9 and it is slow. I check with SYS(3054) and it says optimized is none. My SQL is very simple such as.
>
>Select *;
> From testtable;
> Where orderno="1234"
>
>Yet if I change the above field from orderno to trandate it becomes fully optimized. So VFP9 can use Rushmore from Dos, but not on strings.
>
>Any ideas on what I might be missing.
>
>TIA,
>Dale
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform