pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Finn Lassen <dcio@AxiomInt.com>
To: Richard Broersma Jr <rabroersma@yahoo.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Need help with Visual Basic 6 and PostgreSQL
Date: Fri, 23 Nov 2007 18:41:45 -0500
Message-ID: <47476539.1080602@AxiomInt.com> (raw)
In-Reply-To: <745909.50104.qm@web31801.mail.mud.yahoo.com>
References: <745909.50104.qm@web31801.mail.mud.yahoo.com>

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




view thread (16+ messages)  latest in thread

Message-ID: <47476539.1080602@AxiomInt.com>
Permalink:  ../47476539.1080602@AxiomInt.com/
Also on:    postgresql.org/message-id/47476539.1080602@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-odbc@postgresql.org
  Cc: dcio@AxiomInt.com, rabroersma@yahoo.com
  Subject: Re: Need help with Visual Basic 6 and PostgreSQL
  In-Reply-To: <47476539.1080602@AxiomInt.com>
  References: <745909.50104.qm@web31801.mail.mud.yahoo.com> <47476539.1080602@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