Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 369262E0037 for ; Fri, 23 Nov 2007 21:55:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 53406-06 for ; Fri, 23 Nov 2007 21:55:41 -0400 (AST) Received: from axiomint.com (static-71-122-253-96.tampfl.dsl-w.verizon.net [71.122.253.96]) by postgresql.org (Postfix) with ESMTP id 7EFEE2E0033 for ; Fri, 23 Nov 2007 21:55:46 -0400 (AST) Received: from [10.7.19.90] by axiomint.com (MDaemon.PRO.v8.1.6.R) with ESMTP id md50000541844.msg for ; Fri, 23 Nov 2007 20:55:43 -0500 Message-ID: <474784A2.6030301@AxiomInt.com> Date: Fri, 23 Nov 2007 20:55:46 -0500 From: Finn Lassen User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Re: Need help with Visual Basic 6 and PostgreSQL Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: finnl@axiomint.com X-Spam-Processed: axiomint.com, Fri, 23 Nov 2007 20:55:43 -0500 (not processed: message from valid local sender) X-MDRemoteIP: 10.7.19.90 X-Return-Path: dcio@AxiomInt.com X-MDaemon-Deliver-To: pgsql-odbc@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.954 tagged_above=0 required=5 tests=AWL=-0.357, BAYES_40=-0.185, RDNS_DYNAMIC=0.1, WEIRD_QUOTING=1.396 X-Spam-Level: X-Archive-Number: 200711/37 X-Sequence-Number: 9252 Thanks for all your help! I finally broke down and dropped the table and recreated it WITH OID. Now everything works, even with these simple strings: .ConnectionString = "Driver={PostgreSQL ANSI};Server=localhost;Port=5432;Database=postgres;Uid=user;Pwd=secret,B1=128000" rsOut.Open """Contact1""", dbOut, adOpenDynamic, adLockOptimistic, adCmdTable I don't understand the difference between "LongVarchar" and "Varchar", but I have to use B1 whether I use the ANSI or UNICODE driver. (Source content of the memo field I put into text data type can be more than 64K, so I choose 128000. The default is 8196, so it has to be increased.) Conclusion: Version 8.2.4.0 of psqlodbc30a.dll and psqlodbc30w.dll require tables WITH OID. (The "OID Options, Show column" -- and presumably "ShowOidColumn" -- has no effect.) Finn -- Finn Lassen Deputy CIO Axiom 1805 Drew Street Clearwater, Florida 33765 727-442-7774 voice 727-442-8344 fax dcio@AxiomInt.com www.AxiomInt.com