X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 8012FD1CCD2 for ; Wed, 17 Mar 2004 15:02:14 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 31133-07 for ; Wed, 17 Mar 2004 11:01:59 -0400 (AST) Received: from anchor-post-35.mail.demon.net (anchor-post-35.mail.demon.net [194.217.242.85]) by svr1.postgresql.org (Postfix) with ESMTP id D5A7AD1E9BA for ; Wed, 17 Mar 2004 11:01:54 -0400 (AST) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-35.mail.demon.net with esmtp (Exim 3.35 #1) id 1B3cYP-000BKZ-0Z; Wed, 17 Mar 2004 15:01:58 +0000 Received: by mainbox.archonet.com (Postfix, from userid 529) id 9236716F76; Wed, 17 Mar 2004 15:01:56 +0000 (GMT) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 9681116A55; Wed, 17 Mar 2004 15:01:53 +0000 (GMT) From: Richard Huxton To: "jorgens@coho.net" , "'pgsql-odbc@postgresql.org'" Subject: Re: Some problems with Access and ODBC to PostgreSQL Date: Wed, 17 Mar 2004 15:01:53 +0000 User-Agent: KMail/1.5 References: <01C40AB1.92844E50.jorgens@coho.net> In-Reply-To: <01C40AB1.92844E50.jorgens@coho.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200403171501.53842.dev@archonet.com> X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.15.3 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/64 X-Sequence-Number: 3866 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 =Forms!! > . 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