Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query Speed & 'PacketSize'
Message
 
 
To
19/11/2001 12:05:32
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00583544
Message ID:
00583696
Views:
56
This message has been marked as the solution to the initial question of the thread.
Maybe it cannot be changed after connection is open? Try to change Visual FoxPro default settings at the environment level and than restore it back.
lnPacketSize = Sqlgetprop (0,"packetsize")
= Sqlsetprop (0,"packetsize",8192)
... 
= sqlsetprop (0,"packetsize", lnPacketSize)
>Hi All,
>
>I am trying to get better speed out of a query. On my station it takes about 1-2 seconds to retrieve the data from my local test database. But over the network it takes about 40-60 seconds. The query is not very complicated, but I will be retrieving about 400 records for a report. 25 fields from 2 tables with 1 join and 3 conditions.
>
>I tried looking at the:
>
> * Set PacketSize
> nSet=SQLSETPROP(nHandle, "PacketSize", 2048 ) && No # worked here
>
>But this gives an error. ??? I copied the code from the MSDN library.
>
>Any ideas? I am going through the VFP ODBC driver to a VFP database. Using VFP 6 SP5
>
>TIA
>Mike
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform