Leemi
Tue Aug 10 10:15:09 CDT 2004
Hi Zeke:
I will not rehash the pros and cons of each option since you already
received some good suggestions. I would like to comment on using ODBC.
Normally, performance is not an issue with ODBC connections. However, to
maximize the speed you need to direct the VFP temp files locally as opposed
to writing them over a network. See this article:
259942 HOWTO: Set Where .tmp Files Are Created with the VFP ODBC Driver
http://support.microsoft.com/?id=259942
Also, use the SQLExec() function to optimize the VFP ODBC memory usage with
the SYS(3050) function.
See this article for more info on the SYS(3050) function: 176483 PRB: Large
Amounts of RAM Seem to Process Data Slowly
http://support.microsoft.com/?id=176483
You can integrate this function into a SELECT-SQL command you send to the
backend using SQLExec like this:
SELECT *, SYS(3050,1,10000000) as junk from cust2x
I hope this helps.
This posting is provided "AS IS" with no warranties, and confers no rights.
Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell
*-- VFP9 Public Beta Now Available!! --*
Download the VFP9 beta here:
http://msdn.microsoft.com/vfoxpro/
*-- VFP8 HAS ARRIVED!! --*
Read about all the new features of VFP8 here:
http://www.universalthread.com/VisualFoxPro/News/VFP8Release.asp
Purchase VFP8 here:
http://shop.microsoft.com/Referral/Productinfo.asp?siteID=11518
Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retired Sept. 30th, 2003
>You may also notice that access speed with an ODBC connection is more then
>adequate. It would certainly be simpler to do it this way then using a VFP
>DLL. Try it and see if it meets your needs, sometimes slower but simpler is
>best.
>"Zeke Galama" <nospam@mymail.com> wrote in message
>news:u43sg%23lfEHA.3632@TK2MSFTNGP09.phx.gbl...
> In one of our applications we have a choice as to the type of access to
the
> foxpro database. What is the difference in performance for these different
> options:
>
> - a VFP dll direct accessing the data
> - an ODBC connection
> - OLE/dB connenction
> - Other options?
>
> The performance I'm interested in is select statements with complex where
> clause, with or without grouping of data. The calling application will be
> written in C++
>
> Thanks in advance
> Zeke
>
>