Skip site navigation (1) Skip section navigation (2)

Re: [INTERFACES] Serious problem with the odbc driver and VFP

From: Byron Nikolaidis <byron(dot)nikolaidis(at)home(dot)com>
To: Willy De la Court <Willy(dot)DelaCourt(at)pandora(dot)be>
Cc: "pgsql-interfaces(at)postgreSQL(dot)org" <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: Re: [INTERFACES] Serious problem with the odbc driver and VFP
Date: 2000-03-01 04:44:33
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces

Willy De la Court wrote:
> After byron fixed the odbc driver to version 0009 I could use foxpro
> perfectly with small tables.
> Now another problem surfaces.
> I think the guys that wrote VFP only had microsoft SQL server in mind
> because when using the vfp interface to create views they frequently use
> SQLPREPARE "SELECT * FROM TABLE" and then use SQLNumResultCols to get a
> result.
> For small tables this is no problem but if you have a multi megabyte table
> with about 50000 records in you do have a problem.
> SQLPREPARE works OK but when VFP executes SQLNumResultCols directly after
> the Prepare the odbc driver submits the "SELECT * FROM TABLE" to the
> backend effectively executing the query. Result is 2 minutes waiting time
> and sometimes memory error on the backend.
> Any ideas how to solve this problem.
> ************

Set the "use declare/fetch" driver option to enabled.  This will cause
the driver to only fetch 100 rows (or whatever you have the size set to
in the driver options) before returning control.  It can then return the
result of SQLNumResultCols easily and cancel the statement or continue


In response to

pgsql-interfaces by date

Next:From: Michael MeskesDate: 2000-03-01 07:31:44
Subject: Re: [INTERFACES] ecpg runtime problem
Previous:From: John CollinsDate: 2000-03-01 04:12:44
Subject: JDBC connection refused

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group