pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Ayers <aayers@eldocomp.com>
To: anthony.caduto@micorp.com <anthony.caduto@micorp.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: Access and PG ODBC problem
Date: Mon, 4 Oct 2004 16:31:16 -0700
Message-ID: <4161DD44.7000603@eldocomp.com> (raw)

anthony.caduto@micorp.com wrote:
> 
> Hi,
> I am trying to convert some access databases to use PG linked tables and 
> all was going good until I tried to do some stuff in VBA script..
> 
> Dim conn As New ADODB.Connection
> Set conn = New ADODB.Connection
> conn.Open 
> "driver={PostgreSQL};server=192.168.1.29;port=5432;database=mydb;uid=postgres;pwd=;ksqo=;" 
> 
> Dim rs As New ADODB.Recordset
> Set rs = New ADODB.Recordset
> rs.CursorLocation = adUseServer
> rs.Open "select * from lw_partnershipdata.switchboard_remote", conn, 
> adOpenDynamic, adLockOptimistic, adCmdText
> 
> It all goes good until the last line and then I get this error:
> 
> Column "OID" does not exist
> 
> None of my tables have OIDs as they are large and I don't want the 
> overhead of the OIDs.
> 
> Any help/Ideas would be appreciated.

Don't know if this will help - but did you try checking "Row Versioning" 
on in the ODBC driver?

Andrew Ayers

-- CONFIDENTIALITY NOTICE --

This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email, and delete the message. Thank you.



view thread (8+ messages)  latest in thread

Message-ID: <4161DD44.7000603@eldocomp.com>
Permalink:  ../4161DD44.7000603@eldocomp.com/
Also on:    postgresql.org/message-id/4161DD44.7000603@eldocomp.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: aayers@eldocomp.com, anthony.caduto@micorp.com
  Subject: Re: Access and PG ODBC problem
  In-Reply-To: <4161DD44.7000603@eldocomp.com>
  References: <4161DD44.7000603@eldocomp.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox