Sorin
I agree that at least some of the performance difference may be in the SCATTER loop rather than the SQL itself. That innocent-looking loop may require hundreds, thousands or even hundreds of thousands of extra variable assignments in the VFP version compared to the dotNET version.
We have found that using
select ResultCursor
append from dbf('SQLQueryCursor')
can be an order of magnitude quicker than SCATTER MEMVAR loops.
Like you I am looking forward to hearing whether the above explains the difference and am keeping an open mind till then.
Regards
j.R
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us."
-- Shakespeare: Coriolanus, Act 1, scene 1