VBA and ODBC (was Re: [INTERFACES] RE: pgsql-interfaces-digest V1 #562)

Поиск
Список
Период
Сортировка
От Byron Nikolaidis
Тема VBA and ODBC (was Re: [INTERFACES] RE: pgsql-interfaces-digest V1 #562)
Дата
Msg-id 3843515B.CB44CFC2@home.com
обсуждение исходный текст
Ответ на RE: pgsql-interfaces-digest V1 #562  ("Brian Haney" <brian@cybernaut.com>)
Список pgsql-interfaces

Brian Haney wrote:
> 
> I'm a newbie to PostgreSQL ODBC applications, so please forgive me if the is
> a FAQ.
> 
> I'm writing a VBA/Excel app (new to that, too) and am having great success
> with retrieving data from PostgreSQL, but the recordsets (using DAO) are
> flagged as not Updatable.  I have made sure the the ODBC driver read-only
> flag is set to off/false/zero, but no luck.  I'm sure it's just my
> ignorance, but where else should I look for the cause of getting
> non-updatable recordsets?
> 
> --Brian Haney
> 

Do you have the right kind of recordset?  The only updateable recordset
I think is a dynaset.  For the odbc driver to be able to use it, you
probably have to use the cursor library, since the driver does not deal
with keysets internally.  So there should be a setting in VBA somewhere
to tell it use the cursor library.

You should have the "Use Declare/Fetch" flag disabled.   

You probably need to have the "recognize unique indexes" set to enabled,
and of course you need a physical unique index on the table in question.

Byron

************




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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: [INTERFACES] Asynchronous connection functions - patch submitted
Следующее
От: Michael Meskes
Дата:
Сообщение: Re: [INTERFACES] ERROR: cannot find attribute 1 of relation pg_temp.460.0