Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Very slow VFP SQL Update
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01085361
Message ID:
01085551
Views:
9
Viv,
The code does work. There no need to reselect c_memo before the endscan. The scan loop works on the alias that is current when the scan begins. Try it for yourself. One of my programmers thought the same thing.

>Hi,
>
>I see you solved the slow SQL but this wouldn't have worked anyway:
>
>select c_memo
>scan for updflag = 'U'
>  select bsmemo
>  if seek(c_memo.k_seqno)
>    replace textln with c_memo.textln
>  endif
>endscan
>
>since you're not re-selecting c_memo after the replace....
>
>Regards,
>Viv
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform