Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Slow replace the record
Message
From
11/02/2007 10:23:49
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Slow replace the record
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01194547
Message ID:
01194547
Views:
54
I am replaceing the records wiht these codes. require some advice or sql help.only 900 records, timing is more 80 seconds.
  Select student
         Set Order To CODE
         Set Filter To admtd=1
         Goto Top
         Do While !Eof()
             grno = code
             mscode = scode
             mlcode = lcode
             msec = sec
             Select dly
             Set Order To CODE
             Seek grno
             If Found()
                 Select student
                 Skip
             Else
                 Select dly
                 Append Blank
                 Replace code With grno
                 Replace date With pdate
                 Replace type With 1
                 Replace category With "P"
                 Replace scode With mscode
                 Replace lcode With mlcode
                 Replace sec With msec
                 Select student
                 Skip
             Endif
         Enddo
     Endif
 Endif
Next
Reply
Map
View

Click here to load this message in the networking platform