pg.ddx.io pgsql-php@postgresql.org mailing list archive
help / color / mirror / Atom feedVB ADODB .Open failing
2+ messages / 2 participants
[nested] [flat]
* VB ADODB .Open failing
@ 2007-11-21 00:54 Finn Lassen <dcio@AxiomInt.com>
2007-11-21 04:33 ` Re: VB ADODB .Open failing Richard Broersma Jr <rabroersma@yahoo.com>
0 siblings, 1 reply; 2+ messages in thread
From: Finn Lassen @ 2007-11-21 00:54 UTC (permalink / raw)
To: Postgres General List <pgsql-general@postgresql.org>
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: VB ADODB .Open failing
2007-11-21 00:54 VB ADODB .Open failing Finn Lassen <dcio@AxiomInt.com>
@ 2007-11-21 04:33 ` Richard Broersma Jr <rabroersma@yahoo.com>
0 siblings, 0 replies; 2+ messages in thread
From: Richard Broersma Jr @ 2007-11-21 04:33 UTC (permalink / raw)
To: Postgres General List <pgsql-general@postgresql.org>; Finn Lassen <dcio@AxiomInt.com>
--- On Tue, 11/20/07, Finn Lassen <dcio@AxiomInt.com> wrote:
> 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
> .ConnectionString = "Driver={PostgreSQL
> ANSI};Server=localhost;Port=5432;Database=postgres;Uid=postgres;Pwd=none;"
> Should I have created the table "Contact1" WITH
> OIDS ?
I wonder if this is a problem with the way your ODBC driver is configured. If it is a problem with your ODBC driver configuration, you might also try posting to the PostgreSQL-ODBC mailing list.
Also, why did you choose the ANSI driver over the Unicode driver?
Regards,
Richard Broersma Jr.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2007-11-21 04:33 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-11-21 00:54 VB ADODB .Open failing Finn Lassen <dcio@AxiomInt.com>
2007-11-21 04:33 ` Richard Broersma Jr <rabroersma@yahoo.com>
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