Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Access Passthrough Query Crashing System every time
Message
From
26/11/2001 12:47:05
Dave Nantais
Light speed database solutions
Ontario, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Access Passthrough Query Crashing System every time
Miscellaneous
Thread ID:
00585846
Message ID:
00585846
Views:
54
The following code crashes an instance of VFP 6 SP3 every time.

lcQuery = "SELECT Finder.Source FROM Finder, Orders WHERE Finder.FinderNo = Orders.FinderNo GROUP BY Finder.Source"

lnResult = SQLEXEC(lnConnect,lcQuery,"Sample")

Finder table contains roughly 1,000,000 records.
Orders table contains roughly 60,000 records.
All tables are indexed.
When the tables are smaller the SELECT statement works correctly and retrieves expected results.

I am wondering if there are stored procedures I can execute?
What about the SQLSTRINGCONNECT command ?
Is there something in that command that I can change to allow this kind of query to not crash the system...

lcConnect = "DBQ=" + "\\opserver2\data1\opdb\backend\usmts.mdb" + ";" + ;
"DEFAULTDIR=" + "\\opserver2\data1\opdb\backend\" + ";" + ;
"Driver={Microsoft Access Driver (*.mdb)};DriverId=281;" + ;
"FIL=MS Access;MaxBufferSize=2048;PageTimeout=5;"

I tried changing MaxBufferSize to a significantly larger number and the hard drive just kept going and going... until I issued {CTRL-ALT-DLT} and clicked "End Task" command button.
I tried increasing the size of the 'PageTimeout' command switch.
Next
Reply
Map
View

Click here to load this message in the networking platform