Group: StrataFrame Users
Posts: 193,
Visits: 9K
|
Hi William,
I'm unable to get such results with a VFP linked server...
I've create a VFP table (ID int autoinc, ColDateTime Datetime), populate it with more than 10000 records where coldatetime value is randomized on insert. A single index (primary key) on ID. No index on ColDateTime.
Querying that table from within SSMS as :
SELECT [id], [coldatetime] FROM [VFP_Northwind]...[testdates] where coldatetime >='20090101 01:01:01' and coldatetime <='20481231 23:59:59'
GO
requires less than 1 second to get a resultset of 44 lines between the 10142 (including VFP treatment, SQL treatment, and SSMS display)
It's a little slower with a filter as coldatetime >='01/01/2009 01:01:01'
No difference with and without index on coldatetime
I'ld suspect a pb of pagecode in VFP
(BTW, we presented the first alpha version of VFPinSQL at our last "Rencontres AtoutFox", are you still interested with it?)
|