From: Richard Huxton <dev@archonet.com>
To: jorgens@coho.net <jorgens@coho.net>
To: 'pgsql-odbc@postgresql.org' <pgsql-odbc@postgresql.org>
Subject: Re: Some problems with Access and ODBC to PostgreSQL
Date: Wed, 17 Mar 2004 15:01:53 +0000
Message-ID: <200403171501.53842.dev@archonet.com> (raw)
In-Reply-To: <01C40AB1.92844E50.jorgens@coho.net>
References: <01C40AB1.92844E50.jorgens@coho.net>
On Tuesday 16 March 2004 01:18, Steve Jorgensen wrote:
>
> First, Access is bugging out. I have one form on which, depending which
> variation of the code I run, either rewrites the RecordSource property of
> my form and subform or requeries them to reflect changes in form controls
> the queries refer to. In either case, this will work the first few times,
> then it will continue to work, but I suddenly get 20 instances of the form
> showing in the task bar.
Never seen anything like this, but it sounds like changing the RecordSource
without closing the form might be creating a new form.
> Second, I have some queries that run very fast when I create them
> dynamically in code, but run dog slow when I make them parameterized using
> DAO. I'm talking simple parameters here, just <field>=Forms!<formname>!
> <controlname>. With an MS SQL Server back-end, I get faster performance
> this way because it uses a prepared statement and the server doesn't need
> to recompile the query. here, it seems as if Access might be failing to
> even figure out it should have the server process the WHERE clause, though
> I can't see why that should be happening.
I think it's sending the raw query and filtering client-side. You can check
this by turning query logging on in PostgreSQL (see the postgresql.conf file)
or in your ODBC driver settings.
Must admit, I tend to just assemble my own SQL nowadays - the only pain is
Access' poor string handling.
--
Richard Huxton
Archonet Ltd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: dev@archonet.com, jorgens@coho.net
Subject: Re: Some problems with Access and ODBC to PostgreSQL
In-Reply-To: <200403171501.53842.dev@archonet.com>
References: <01C40AB1.92844E50.jorgens@coho.net> <200403171501.53842.dev@archonet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox