Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Linked Server Extremly Slow
Message
 
 
To
31/07/2005 16:03:47
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 6 SP3
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01037362
Message ID:
01037364
Views:
21
>I've installed a MSDE and connect a VFP table with using sp_addlinkedserver with OLEDB.
>
>Testing the performance I was surprised how slow this solution was. Since this table is not a big deal for VFP itself (cca. 25000 records) I thought it would be same with MSDE and I tested it on local PC.
>
>SELECT * FROM MyTable
>
>finished directly in VFP in 0 seconds (well, almost). I exported this table to a MSDE database and made a SQLConnect with ODBC. Creating Cursor with SQLExec takes about 4 seconds, what is acceptable in some way, but...

Your comparison is incorrect. In VFP you get filtered cursor which doesn't take any time to crerate regardless of the size of table. ou should add NOFILTER clause in VFP
SELECT * FROM MyTable NOFILTER
Anyway, access through ODBC driver or OLE DB Provider will always be slower than native VFP access. The more record you retrieve the longer it'll take. It's important to design your application in such way that it newer retriev huge amount of records.

<snip>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform