Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace vs. Update
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Replace vs. Update
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01358644
Message ID:
01358644
Views:
79
Hi everybody,

If I have a cursor to process which I'm scanning and based on this cursor I need to change (update & insert) several tables (one record per each) is it better (performnce wise) to use

UPDATE where PK = cursor.Field

vs.
if seek(PKField, 'MyTable')
   replace in myTable
endif
Assuming all the tables are in buffered 5 mode.

Thanks a lot in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform