Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id E73A92E0042 for ; Fri, 23 Nov 2007 20:32:32 -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 18461-08 for ; Fri, 23 Nov 2007 20:27:01 -0400 (AST) Received: from web31801.mail.mud.yahoo.com (web31801.mail.mud.yahoo.com [68.142.207.64]) by postgresql.org (Postfix) with SMTP id 468962E0035 for ; Fri, 23 Nov 2007 20:27:05 -0400 (AST) Received: (qmail 80322 invoked by uid 60001); 24 Nov 2007 00:27:04 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=kfJD1AJfWhaiM4S6dXz5cgSo0mFbtvHtSmjSjPwF+EWcSW2BPhJtsAs1z0qjUTG/R2cVakec57NYMdoCkXknwEnfJQLJn6YJnaDEiabdQszwTwtU66zsEAHTp/uPfZjAiCKG3gXcHoeMBeRms3tBLMAzJe99EwBoTITug5AUyOc=; Received: from [12.180.237.138] by web31801.mail.mud.yahoo.com via HTTP; Fri, 23 Nov 2007 16:27:03 PST X-Mailer: YahooMailWebService/0.7.158 Date: Fri, 23 Nov 2007 16:27:03 -0800 (PST) From: Richard Broersma Jr Subject: Re: Need help with Visual Basic 6 and PostgreSQL To: Finn Lassen Cc: pgsql-odbc@postgresql.org In-Reply-To: <47476539.1080602@AxiomInt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <984765.79625.qm@web31801.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/34 X-Sequence-Number: 9249 --- On Fri, 11/23/07, Finn Lassen wrote: > "ERROR: Column "oid" does not exist;" > I get when executing the " rsOut.Open ..." > statement below. Here are some OID setting from ODBC driver manual: ... OID Options: Show Column: Includes the OID in SQLColumns. This is good for using as a unique identifier to update records if no good key exists OR if the key has many parts, which blows up the backend. Fake Index: This option fakes a unique index on OID. This is useful when there is not a real unique index on OID and for apps which can't ask what the unique identifier should be (i.e, Access 2.0). ... Perhaps the odbc driver defaults to showing ODBC column. In postgresql versions < 8.0 it was the default for every table to be given an OID (basically every row in any and all tables had a unique number that identified it). However, as of postgresql 8.0, OID columns are no longer added to all table by default. This could be causing the problem since the ODBC driver may be trying to select the OID column from your table even though it doesn't actually exist. I will look for the ODBC documention that describes that settings that you can pass to the ODBC driver in the connection string. Regards, Richard Broersma Jr.