It looks like you've got it backwards. The left side of your WHERE clause 
should be the field expression and the right side your memvar reference.

Where UPPER(serno)=m.trcask

--
rk


-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Sytze de Boer
Sent: Wednesday, February 09, 2011 5:16 PM
To: [email protected]
Subject: Re: VFP9 - Speed

Well.....
trcask=upper("abc123")
Amongst others, the winhst files includes an index on upper(serbo) Winhst has 
500,000 records

Select * From winhst Where trcask=UPPER(serno) Order By invnum Into Table
(myfile)

I have studied all the (very helpful) suggestions and I can't figure why this 
can take 10-20 seconds I've tried it with AV on and off

It simply takes too long....

S




On Thu, Feb 10, 2011 at 10:59 AM, Rick Schummer < 
[email protected]> wrote:

> >>>That would depend on SET ANSI ....
>
> Yes, and SET EXACT...<<
>
> SET EXACT does not impact SQL Selects at all. Only SET ANSI
>
> Rick
> White Light Computing, Inc.
>
> www.whitelightcomputing.com
> www.swfox.net
> www.rickschummer.com
>
>
>
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/DF1EEF11E586A64FB54A97F22A8BD0441922281A8C@ACKBWDDQH1.artfact.local
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to