X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id C498C9DCB80 for ; Fri, 6 Jan 2006 21:25:57 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 44584-04 for ; Fri, 6 Jan 2006 21:26:01 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from gk-us2.us.michelin.com (gk-us2.michelin.com [156.65.14.19]) by postgresql.org (Postfix) with ESMTP id 62B3C9DCB9E for ; Fri, 6 Jan 2006 21:25:53 -0400 (AST) Received: from oncpfxp4-out.onc.michelin.com (unverified [10.21.4.32]) by gk-us2.us.michelin.com (Clearswift SMTPRS 5.1.7) with ESMTP id for ; Fri, 6 Jan 2006 20:24:50 -0500 Received: from ONCMH1.onc.michelin.com (ONCMH1.onc.michelin.com [156.65.124.40]) by oncpfxp4-out.onc.michelin.com (Postfix) with ESMTP id 86FCD16D11 for ; Fri, 6 Jan 2006 20:25:57 -0500 (EST) Received: from oncmtap1.onc.michelin.com by oncmh1.onc.michelin.com with ESMTP for pgsql-odbc@postgresql.org; Fri, 6 Jan 2006 20:25:57 -0500 Received: from oncems01.onc.michelin.com ([156.65.125.150]) by oncmtap1.onc.michelin.com (Netscape Messaging Server 4.15) with ESMTP id ISP7Z800.68U for ; Fri, 6 Jan 2006 20:25:56 -0500 Received: from [10.36.138.57] (unverified) by oncems01.onc.michelin.com (Content Technologies SMTPRS 4.2.5) with ESMTP id ; Fri, 6 Jan 2006 20:25:55 -0500 Message-Id: <43BF189F.5030001@us.michelin.com> Date: Fri, 06 Jan 2006 20:25:51 -0500 From: "Campbell, Greg" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Page CC: linuxgps , pgsql-odbc@postgresql.org Subject: Re: VBA 6 crashes with WIN2K, Postgres 8.1, why ? whichdll?? References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------080604000908090606000900" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=2.152 required=5 tests=[AWL=0.000, RCVD_IN_WHOIS_INVALID=2.151, UNPARSEABLE_RELAY=0.001] X-Spam-Score: 2.152 X-Spam-Level: ** X-Archive-Number: 200601/52 X-Sequence-Number: 6867 This is a multi-part message in MIME format. --------------080604000908090606000900 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit You can help me understand the utility of the adOpenDynamic. Both adOpenStatic, and adOpenDynamic allow moving through the recordset in multiple directions. With adOpenDynamic, other users changes are visible in your recordset, as opposed to the static which is more of a snapshot. Then there is the CursorLocation parameter (client-side or server-side). How does it work to use adOpenDynamic (for viability of updates from others), if the cursor is not server-side? If server-side cursor is the only way of getting the added value of adOpenDynamic, doesn't that mean an updateable cursor? Here's another angle of attack to help my understanding. adOpenDynamic shows changes made by others. Updateable cursors allow me to make changes along an open cursor back to the database. Are you saying the simple adOpenDynamic configuration is allowing changes to to get to me, along a communication channel without my ability to make changes back along that channel? Dave Page wrote: > > > >>-----Original Message----- >>From: pgsql-odbc-owner@postgresql.org >>[mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Campbell, Greg >>Sent: 06 January 2006 23:44 >>To: linuxgps >>Cc: pgsql-odbc@postgresql.org >>Subject: Re: [ODBC] VBA 6 crashes with WIN2K, Postgres 8.1, >>why ? whichdll ?? >> >>3. Again this is a personal preference, but I always use >>connection.Execute for INSERTS,UPDATE, and >>DELETES. Your example used on AddNew and one cnn.Execute. >> >>4. I find a object referencing style and stick with it. >>rs.Fields("fieldname") and rs!fieldname are both a >>little dated. rs("fieldname"), or >>rs(variable_holding_field_name) or rs(integer_field_ndx) seem to be >>cultural standards now. > > > The example is from the psqlODBC VB HOWTO which goes out of it's way to > show the different ways to use ADO with PostgreSQL. Your suggestions are > correct of course, but there is good reason why that code looks as it > does. > > >>Oh, and PostgreSQL via ODBC,... >>it has never been strong on the updateable cursor/dynamic >>cursor thing. > > > Don't mix the two up, they are separate things. Dynamic recordsets > (adOpenDynamic) have worked well since at least 1997 when I first wrote > pgAdmin I in VB5, long before Hiroshi added the Updateable Cursors > option to the driver (back when Byron maintained it in fact). They still > do work well with the current versions of the driver (at least, none of > my users of 4 of 5 different VB apps complained when they got upgraded). > The Updateable Cursor option is an experimental implementation of > emulated updateable server-side cursors (which PostgreSQL doesn't > natively support) iirc. > > Regards, Dave. --------------080604000908090606000900 Content-Type: text/x-vcard; charset=utf-8; name="greg.campbell.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="greg.campbell.vcf" begin:vcard fn:Greg Campbell n:Campbell;Greg org:Michelin North America - US5 Lexington;ENG-ASE email;internet:greg.campbell@us.michelin.com title:ASE Systems Engineer tel;work:803-951-5561/x75561 x-mozilla-html:FALSE version:2.1 end:vcard --------------080604000908090606000900--