s***@gmail.com
2006-12-22 18:39:27 UTC
I've got a large FoxPro table that I'm trying to query from an ASP.NET
application. When I open the .dbf in FoxPro, the query takes .02
seconds to return the 11 records. When I run the query via the OleDb
provider (version 1.1 from January 2006), it takes over 20 seconds. So
far I've tried:
1) using the directory where the .dbf and .cdx are as the source in the
connection string
2) using the .dbf file as the source in the connection string
3) creating a .dbc file and using that as the source in the connection
string
Is there anything else that can be done to force the OleDB provider to
use the index? I've seen references to SET OPTIMIZE ON and SET INDEX
TO, but both of those bomb when submitted as commands via the OleDB
provider.
Thanks,
Bob
application. When I open the .dbf in FoxPro, the query takes .02
seconds to return the 11 records. When I run the query via the OleDb
provider (version 1.1 from January 2006), it takes over 20 seconds. So
far I've tried:
1) using the directory where the .dbf and .cdx are as the source in the
connection string
2) using the .dbf file as the source in the connection string
3) creating a .dbc file and using that as the source in the connection
string
Is there anything else that can be done to force the OleDB provider to
use the index? I've seen references to SET OPTIMIZE ON and SET INDEX
TO, but both of those bomb when submitted as commands via the OleDB
provider.
Thanks,
Bob