Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is more efficient of the two
Message
 
To
12/07/2006 13:10:40
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
MS SQL Server
Miscellaneous
Thread ID:
01135592
Message ID:
01135927
Views:
12
Hi Dragan

>Generally, the most expensive thing in SPT is the overhead of a single SqlExec (if we discount for bad database design, or other human factor issues). If your code needs to perform a lot of work on multiple records, get those records at once, and trust the Fox to do most of what you do (in case 1) in memory. The second case would require one trip to server for each record, which would create much more network traffic.

Thanks for your inputs. I have generally opted for the second option. Though given a bit of time I also want to try out the temp tables and SQLPREPARE() options.

Thanks.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform