pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Goodman <tomgoodman@mhproez.com>
To: Jaap Van Oosten <jaapvanoosten@hotmail.com>
To: Pgsql-odbc@postgresql.org <Pgsql-odbc@postgresql.org>
Cc: jaapoosten@gmail.com <jaapoosten@gmail.com>
Subject: Re: VB6 ODBC
Date: Thu, 31 May 2018 12:52:03 -0400
Message-ID: <9dded97d-8059-0dca-6bee-03a5ce95bbac@mhproez.com> (raw)
In-Reply-To: <ddc1e904-dc84-9820-6e14-4677a1c39521@mhproez.com>
References: <AM5PR03MB296224D8FD95B58134342AEEA0630@AM5PR03MB2962.eurprd03.prod.outlook.com>
	<ddc1e904-dc84-9820-6e14-4677a1c39521@mhproez.com>

Jaap,

I am using psqlodbc_09_03_0400 downloaded as psqlodbc_09_03_0400.zip 
(5.9mb) to talk to postgresql-9.6.1-1-windows-x64.exe

https://ftp.postgresql.org/pub/odbc/versions/msi/psqlodbc_09_03_0400.zip

https://get.enterprisedb.com/postgresql/postgresql-9.6.9-1-windows-x64.exe 
(closest version to my current version)

My VB6 ADO connection string is: Provider=MSDASQL;Driver=PostgreSQL ODBC 
Driver(ANSI);SERVER=localhost;PORT=5432;UID=postgres;Pwd=xxxxxxxx;DATABASE=fred;ByteaAsLongVarBinary=1;BoolsAsChar=0;

I have not used the unicode driver, only the ANSI driver for connections 
to postgres.

Tom

Tom Goodman, email TomGoodman@MHProEZ.com <mailto:TomGoodman@MHProEZ.com>
1406 Tenth St., Bay City, MI 48708, USA, Phone 989 893 1450
* God grant me the serenity to accept the code I cannot change
* the courage to change the code I can change
* and the wisdom to know the difference

On 2018-05-31 12:33, Tom Goodman wrote:
> Jaap,
>
>
> To connect a VB6 application to PostgreSQL you need the 32 bit ODBC 
> driver even when Windows is 64 bit.
>
>
> So pick-up the x86 version of the driver from 
> https://www.postgresql.org/ftp/odbc/versions/msi/ and install it.
>
>
> Verify that you have the 32 bit driver installed by:
>
>     Running the 32 bit version of ODBC Data Source Administration 
> c:\Windows\SysWOW64\odbcad32.exe
>
>     Look at the Drivers tab to see PostgreSQL ODBC
>
>
> Note that if you installed the 64 bit driver it will appear in the 64 
> bit version of ODBC Data Source Administration 
> c:\Windows\System32\odbcad32.exe
>
>
> Tom
>
>
> Tom Goodman, email TomGoodman@MHProEZ.com <mailto:TomGoodman@MHProEZ.com>
> 1406 Tenth St., Bay City, MI 48708, USA, Phone 989 893 1450
> * God grant me the serenity to accept the code I cannot change
> * the courage to change the code I can change
> * and the wisdom to know the difference
>
> On 2018-05-31 06:34, Jaap Van Oosten wrote:
>> Hello sir's
>> We want to run A VisiualBasic6 application connected with postgreSQL.
>> This application was running with Windows XP over many years.
>> Now the PC must be replaced by W7pro 64bit system.
>> I have installed postgreSQL 8.4  and psqlodbc_9_00_0310-x64  and 
>> later versions.
>> The W7 ODBC (32bit) datasource administrator does find : PostgreSql30 
>> unicode(x64) source. Connection test ok. Vb6 data environment finds: 
>> PostgreSql OLE DB Provider but this one cannot connect with the pgSQL 
>> server.
>> I think this should be an ODBC type provider
>>
>> The question is:  is there a PostgreSql ODBC driver for W7pro 64b 
>> that will work with VB6.?
>> Kind regards
>> Jaap van Oosten
>
>

view thread (3+ messages)

Message-ID: <9dded97d-8059-0dca-6bee-03a5ce95bbac@mhproez.com>
Permalink:  ../9dded97d-8059-0dca-6bee-03a5ce95bbac@mhproez.com/
Also on:    postgresql.org/message-id/9dded97d-8059-0dca-6bee-03a5ce95bbac@mhproez.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: tomgoodman@mhproez.com, jaapvanoosten@hotmail.com, jaapoosten@gmail.com
  Subject: Re: VB6 ODBC
  In-Reply-To: <9dded97d-8059-0dca-6bee-03a5ce95bbac@mhproez.com>
  References: <AM5PR03MB296224D8FD95B58134342AEEA0630@AM5PR03MB2962.eurprd03.prod.outlook.com> <ddc1e904-dc84-9820-6e14-4677a1c39521@mhproez.com> <9dded97d-8059-0dca-6bee-03a5ce95bbac@mhproez.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