Re: Need help with Visual Basic 6 and PostgreSQL

Поиск
Список
Период
Сортировка
От Finn Lassen
Тема Re: Need help with Visual Basic 6 and PostgreSQL
Дата
Msg-id 47476539.1080602@AxiomInt.com
обсуждение исходный текст
Ответ на Re: Need help with Visual Basic 6 and PostgreSQL  (Richard Broersma Jr <rabroersma@yahoo.com>)
Ответы Re: Need help with Visual Basic 6 and PostgreSQL  (Richard Broersma Jr <rabroersma@yahoo.com>)
Re: Need help with Visual Basic 6 and PostgreSQL  ("Thomas H." <me@alternize.com>)
Re: Need help with Visual Basic 6 and PostgreSQL  (Richard Broersma Jr <rabroersma@yahoo.com>)
Список pgsql-odbc
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


В списке pgsql-odbc по дате отправления:

Предыдущее
От: Tom Hart
Дата:
Сообщение: odbc varchar/longvarchar default setting
Следующее
От: Richard Broersma Jr
Дата:
Сообщение: Re: Need help with Visual Basic 6 and PostgreSQL