pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Finn Lassen <dcio@AxiomInt.com>
To: Postgres General List <pgsql-general@postgresql.org>
Subject: VB ADODB .Open failing
Date: Tue, 20 Nov 2007 19:54:52 -0500
Message-ID: <474381DC.5090207@AxiomInt.com> (raw)

I'm new to this, so please bear with me.

Here is a VB code snippet:
    Dim dbOut As ADODB.Connection
    Dim rsOut As ADODB.Recordset
    Set dbOut = New ADODB.Connection
    Set rsOut = New ADODB.Recordset
 
    With dbOut
        .ConnectionString = "Driver={PostgreSQL 
ANSI};Server=localhost;Port=5432;Database=postgres;Uid=postgres;Pwd=none;"
        .Open
        With rsOut
            rsOut.Open """Contact1""", dbOut, adOpenDynamic, 
adLockOptimistic, adCmdTable

The .Open statement fails with:
"ERROR: column "oid" does not exist;
Error while executing the query".

I get the same error with the following:
rsOut.Open "select * from ""Contact1"";", dbOut, adOpenDynamic, 
adLockOptimistic, adCmdText

Should I have created the table "Contact1" WITH OIDS ?

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





view thread (2+ messages)  latest in thread

Message-ID: <474381DC.5090207@AxiomInt.com>
Permalink:  ../474381DC.5090207@AxiomInt.com/
Also on:    postgresql.org/message-id/474381DC.5090207@AxiomInt.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-php@postgresql.org
  Cc: dcio@AxiomInt.com, pgsql-general@postgresql.org
  Subject: Re: VB ADODB .Open failing
  In-Reply-To: <474381DC.5090207@AxiomInt.com>
  References: <474381DC.5090207@AxiomInt.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