Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Xbase commands Vrs Sql commands
Message
From
07/05/2005 11:39:27
 
 
To
07/05/2005 03:39:07
Suhas Hegde
Dental Surgeon
Sirsi, India
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6 SP5
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01011885
Message ID:
01011902
Views:
22
>hi,
>
>I always find Xbase commands faster than Sql(statement) commands.
>
>
>Any case where Sql statments are faster ?
>Also i would like to know best prsctices where to use what ??
>
>
>TIA
>suhashegde

I would imagine this:

SELECT * FROM mytable INTO CURSOR mycursor

would be faster than:

create cursor mycursor (field definitions)
select mytable
scan
scatter memvar memo
insert into myCursor from memvar
endscan

I generally use SQL as my first choice. If it's slow I try tooptimise it with the appropriate indexes. If that's still too slow I look at using xbase code. Sometimes the xbase code is faster sometimes not, but I find SQL easier to maintain and easier to run against a database different to VFP.

HTH,
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform