Hi!
For the first time I am experiencing a short wait for processing to take place. Still in VFP 6.0 and tables have 20 - 50k records each for the time period I am processing. I used SQL SELECT to get the records and transfer to archive. This is what I am doing to delete them from active tables. Wondering if someone would show me a better (maybe newer?)way.
I realize I didn't pack scrap table in this, but I will fix that. The pause is not bad but made me think about speed and my method. Any suggestions?
TIA
Judi
For the first time I am experiencing a short wait for processing to take place. Still in VFP 6.0 and tables have 20 - 50k records each for the time period I am processing. I used SQL SELECT to get the records and transfer to archive. This is what I am doing to delete them from active tables. Wondering if someone would show me a better (maybe newer?)way.
Code:
*** archive complete - remove from current tables
IF llGotScrap
SELECT 0
USE Casting!scrap ALIAS lcAlias EXCLUSIVE
SELECT ordtemp
SCAN
lcJobsno = jobsnumb
lcOrdrno = ordrnumb
SELECT lcAlias
LOCATE FOR jobsnumb = lcJobsno AND ordrnumb = lcOrdrno
IF FOUND()
DELETE
ENDIF
ENDSCAN
ENDIF
*** now orders
SELECT 0
USE orders IN 0 EXCLUSIVE
PACK
I realize I didn't pack scrap table in this, but I will fix that. The pause is not bad but made me think about speed and my method. Any suggestions?
TIA
Judi