Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 701D12E0037 for ; Fri, 23 Nov 2007 19:41: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 66872-10 for ; Fri, 23 Nov 2007 19:41:44 -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 428492E0035 for ; Fri, 23 Nov 2007 19:41:48 -0400 (AST) Received: from [10.7.19.90] by axiomint.com (MDaemon.PRO.v8.1.6.R) with ESMTP id md50000541803.msg for ; Fri, 23 Nov 2007 18:41:46 -0500 Message-ID: <47476539.1080602@AxiomInt.com> Date: Fri, 23 Nov 2007 18:41:45 -0500 From: Finn Lassen User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Richard Broersma Jr CC: pgsql-odbc@postgresql.org Subject: Re: Need help with Visual Basic 6 and PostgreSQL References: <745909.50104.qm@web31801.mail.mud.yahoo.com> In-Reply-To: <745909.50104.qm@web31801.mail.mud.yahoo.com> 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 18:41:46 -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.882 tagged_above=0 required=5 tests=AWL=-0.429, BAYES_40=-0.185, RDNS_DYNAMIC=0.1, WEIRD_QUOTING=1.396 X-Spam-Level: X-Archive-Number: 200711/31 X-Sequence-Number: 9246 A basic question: In a connection string, if you only specify a driver name ("PostgreSQL ANSI"), instead of a DSN configured with the ODBC Data Source Administrator, do any configuration changes made with the ODBC Data Source Administrator affect the driver itself? In other words, does registering an ODBC driver automatically make it subject to any configurations made with ODBC Data Source Administrator? I still don't understand the: "ERROR: Column "oid" does not exist;" I get when executing the " rsOut.Open ..." statement below. Can the ODBC driver only handle tables with oid columns? Dim cn As ADODB.Connection Dim rsOut As ADODB.Recordset Set cn = New ADODB.Connection Set rsOut = New ADODB.Recordset With cn .ConnectionString = "Driver={PostgreSQL ANSI};Server=localhost;Port=5432;Database=postgres;Uid=user;Pwd=secret;" .Open With rsOut rsOut.Open """Contact1""", dbOut, adOpenDynamic, adLockOptimistic, adCmdTable Finn