Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fOQoH-0002Sq-N1 for pgsql-odbc@arkaria.postgresql.org; Thu, 31 May 2018 16:52:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fOQoF-0001Bc-SJ for pgsql-odbc@arkaria.postgresql.org; Thu, 31 May 2018 16:52:19 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fOQoF-0001BS-G8 for pgsql-odbc@lists.postgresql.org; Thu, 31 May 2018 16:52:19 +0000 Received: from bosmailout03.eigbox.net ([66.96.184.3]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fOQoC-00028L-2G for pgsql-odbc@postgresql.org; Thu, 31 May 2018 16:52:18 +0000 Received: from bosmailscan03.eigbox.net ([10.20.15.3]) by bosmailout03.eigbox.net with esmtp (Exim) id 1fOQo7-0004N6-ER for Pgsql-odbc@postgresql.org; Thu, 31 May 2018 12:52:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mhproez.com ; s=dkim; h=Sender:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID: References:Cc:To:From:Subject:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=nZZjx6tZnrfmd7jPUi+B9MT4hll74baBc7IEs5SnrVU=; b=dzRsXwYtXt3tl2Qj1QRsSOSOjU nBvNKR5JzV+y/b6pv4Rq9S0GmV69yc/fp6uJUhvQzRBWmaSDq8nr973Ccz1LN6t25IGPkYBzdv9kL RcL+HZmgG5BkdwJa2ak/g8Jay0Q6UFAI8wWURwMaPagmEqFKM9zdptC7J7BI7SHHpgAUuiKx9cH20 pETy1BFaFJlNKI8gL/Xurb+Y9xuDXh2CeEB/PSvg0quLrTDxG5KoVKox5rPJiokMcJvbpfPn1stlD CJ+x7jg9/RniYh+JnRdaLrUTHPGsSqXD5LbWra9eS3uHJpdwc7PciAprdsYW92G6d5aQDzrN1Ki6J kTT734/g==; Received: from [10.115.3.32] (helo=bosimpout12) by bosmailscan03.eigbox.net with esmtp (Exim) id 1fOQo7-0002Ry-BV for Pgsql-odbc@postgresql.org; Thu, 31 May 2018 12:52:11 -0400 Received: from bosauthsmtp05.yourhostingaccount.com ([10.20.18.5]) by bosimpout12 with id t4s81x00L06Zqne014sBC5; Thu, 31 May 2018 12:52:11 -0400 X-Authority-Analysis: v=2.2 cv=D/83ErZj c=1 sm=1 tr=0 a=eBvjjtMVdWwtQGedh7GyLg==:117 a=syPxBYaFD9uYw4p5DVdrpg==:17 a=VUJBJC2UJ8kA:10 a=x6G-wrkgyPMA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=epTmVMiNAAAA:8 a=oa-xg8NNAAAA:8 a=jfZTBj64AAAA:8 a=26Tx3Erfq21uEAUUICIA:9 a=_Da8dg8rQmpxDzW8:21 a=0R36SWI8UfbWyf9w:21 a=QEXdDO2ut3YA:10 a=qRsPRjdlE7AA:10 a=nTj0orGxvmYA:10 a=wv4RRXJ4MU4A:10 a=9UInUt5ICPC2GR42YRcA:9 a=uX9EvHm0N52s09p0:21 a=CA2TkRm2UCkTZtBk:21 a=bzUxXoiRHZQD3eFI:21 a=_W_S_7VecoQA:10 a=ndEWmUVY6Yapc0oHF_P4:22 a=MQ1BrC-N35uif390zSTS:22 a=PHiiRVsVMcAh0rEv-6c9:22 Received: from 24-180-79-146.static.bycy.mi.charter.com ([24.180.79.146]:38219 helo=[192.168.11.12]) by bosauthsmtp05.eigbox.net with esmtpa (Exim) id 1fOQo4-0004wI-5E; Thu, 31 May 2018 12:52:08 -0400 Subject: Re: VB6 ODBC From: Tom Goodman To: Jaap Van Oosten , "Pgsql-odbc@postgresql.org" Cc: "jaapoosten@gmail.com" References: Message-ID: <9dded97d-8059-0dca-6bee-03a5ce95bbac@mhproez.com> Date: Thu, 31 May 2018 12:52:03 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------21B24FEB05BD5A095BF29421" Content-Language: en-US X-EN-UserInfo: a3758f39c19cc6408b29a4ce540021fb:931c98230c6409dcc37fa7e93b490c27 X-EN-AuthUser: tomgoodman@mhproez.com Sender: Tom Goodman X-EN-OrigIP: 24.180.79.146 X-EN-OrigHost: 24-180-79-146.static.bycy.mi.charter.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------21B24FEB05BD5A095BF29421 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 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 > 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 > > --------------21B24FEB05BD5A095BF29421 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

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.

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


--------------21B24FEB05BD5A095BF29421--