X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 7E36FD1B4F1 for ; Fri, 12 Sep 2003 20:55:15 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 47565-07 for ; Fri, 12 Sep 2003 17:54:45 -0300 (ADT) Received: from ecintweb.eldocomp.com (ecintweb.eldocomp.com [205.159.99.8]) by svr1.postgresql.org (Postfix) with ESMTP id AA2A0D1B4EE for ; Fri, 12 Sep 2003 17:54:42 -0300 (ADT) Received: by ecintweb.eldocomp.com with XWall v3.27j ; Fri, 12 Sep 2003 13:54:43 -0700 From: Andrew Ayers To: Greg Campbell Cc: "pgsql-odbc@postgresql.org" Subject: Re: ADO Server Cursors and OID Date: Fri, 12 Sep 2003 13:54:44 -0700 X-Assembled-By: XWall v3.27j Message-ID: <3F623294.4040403@eldocomp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/50 X-Sequence-Number: 3248 Greg Campbell wrote: > I have created a table with a serial ID (sequenced) key_id field which > is also the PRIMARY KEY using pgAdmin. I've looked at the create table > statement. It has a WITHOUT OIDS clause. Table works fine, but I seem to > be unable to make ADO server side cursors. (VB). >=20 > Is there a key to enabling server side cursors.=20 > I can link the table in Access and browse it and change field values. It > gives the impression of server side cursor, although I do not know if > that is what it is really doing. The DAO engine->pgODBC may be (must be) > behaving differently than my ADO code->pgODBC. >=20 > I know I can work around with client side cursors for selects, and use > INSERT,UPDATE executable queries. But with inserts/updates that have > many fields or needing to escape (/') text fields that might contain > quotes, the coding can get a little hairy compared to updating a cursor > field. I can't tell you what the problem is you are running into. I have never=20 used the "WITHOUT OIDS" clause, as a PG user, I am very newbie to all of=20 it, there is a lot about PG I still need to learn. As far as DAO vs. ADO - yes, they operate *very* differently in regards=20 to pgODBC - one thing I found that forced me to go to ADO was that in=20 DAO you couldn't "double update" a TEXT field type (analogous to Memo=20 fields), like you can in DAO: .AddNew ![field1] =3D "this" ![field1] =3D "that" .update The second setting of the field would cause the program to fall over.=20 ADO didn't have this problem. If I could do it all over again (I couldn't modify my app to be this way=20 when I was converting it from Access to PG - when I mean doing it over,=20 I mean from the very beginnning), I would have the backend do all the=20 work, and only "interface" via SQL, and completely avoid "cursor=20 fields", as you put them. While the coding would be difficult, I think I could probably come up=20 with a reusable function library to make things fairly easy, so that=20 something similar to the cursor fields could be done, but the function=20 library (or class set, or whatever) would do the translation from what I=20 want to the SQL to perform the actions. I hope someone else is able to diagnose your issue, and that they post=20 here so I can learn something as well. Andrew Ayers Phoenix, Arizona -- CONFIDENTIALITY NOTICE -- This message is intended for the sole use of the individual and entity to w= hom it is addressed, and may contain information that is privileged, confid= ential and exempt from disclosure under applicable law. If you are not the = intended addressee, nor authorized to receive for the intended addressee, y= ou are hereby notified that you may not use, copy, disclose or distribute t= o anyone the message or any information contained in the message. If you ha= ve received this message in error, please immediately advise the sender by = reply email, and delete the message. Thank you.