>>What happens if you open the table without the alias MyOUT?
>
>Wow. That was it...!
>
>If I don't use the Alias, the code executes just as fast as if I comment out the line to open the table. Is this documented somewhere? IOW, should I feel stupid on this one?
>
>Rick, Thanks for the suggestion. Anyone know why opening a table with an alias would cause the performance drop on the insert?
That's very important. In out routine we open tables with different aliases. Also try insert into dbf('MyOut') from memvar
BTW, I saw today (from Rick's Borup blog) a pointer to a discussion about insert into ... from memvar and using different aliases. It didn't mention slowness, though. (on
www.foxforum.com)
If it's not broken, fix it until it is.
My Blog