From: Harry Sufehmi <milis-2@harrysufehmi.com>
To: pgsql-odbc@postgresql.org
Subject: Re: Problem connecting from Windows 9x/Me
Date: Fri, 29 Apr 2005 15:06:19 +0700
Message-ID: <4.3.2.7.2.20050429143651.020e7be0@sufehmi.com> (raw)
In-Reply-To: <4.3.2.7.2.20050427134929.021bced0@sufehmi.com>
Hi,
I've tried creating a table link in Access automatically (so my users won't
have to). Unfortunately, it still unable to connect.
I've done further investigation on the ODBC trace logs, and it seems the
difference is here:
Success:
======================================
sir fffaa095-fff4e88d ENTER SQLDriverConnectW
HDBC 07A70D54
HWND 000005F4
WCHAR * 0x1F7D8B70 [ -3] "******\ 0"
SWORD -3
WCHAR * 0x1F7D8B70
SWORD 8
SWORD * 0x00000000
UWORD 1 <SQL_DRIVER_COMPLETE>
sir fffaa095-fff4e88d EXIT SQLDriverConnectW with
return code 0 (SQL_SUCCESS)
======================================
Failed:
======================================
sir fffaa095-fff4e88d ENTER SQLDriverConnectW
HDBC 07A70080
HWND 000005F4
WCHAR * 0x1F7D8B70 [ -3] "******\ 0"
SWORD -3
WCHAR * 0x1F7D8B70
SWORD 8
SWORD * 0x00000000
UWORD 3 <SQL_DRIVER_COMPLETE_REQUIRED>
sir fffaa095-fff4e88d EXIT SQLDriverConnectW with
return code -1 (SQL_ERROR)
======================================
However, I noted that the connection from a Windows 2000 machine (which
never encounter this issue) uses SQL_DRIVER_COMPLETE_REQUIRED parameter as
well (and it connects just fine). So probably that's not the culprit.
A discussion I found mentioned about the ODBC driver using Unicode,
therefore causing problems on Windows9x/Me machines.
I wonder if that's the case here as well.
Those are my findings so far.
Any help would be greatly appreciated.
Thanks,
Harry
At 14:37 27/04/2005 +0700, Harry Sufehmi wrote:
>Basically, everytime they open the MS Access application, the application
>failed with the following error message:
>"ODBC -- connection to 'pgsql_sir' failed."
>
>There's a workaround for this - if we create a new table link to the
>PostgreSQL database, then afterwards everything works fine. I have no idea
>why it solves the problem (temporarily), but there you go.
>
>But of course this can not be / not feasible to be done by the users
>everytime they start up the application, so I hope somebody can help us to
>solve this problem.
>
>I've made the SQL.LOG files (ODBC tracing output) available :
>
>http://www.abangadek.com/tamu/ODBCLOG-unable-to-connect.txt
>Recorded the failure of our internal MS Access application to connect to
>the PostgreSQL server
>
>http://www.abangadek.com/tamu/ODBCLOG-connected-after-creating-new-link-in-Access.txt
>Recorded the table link creation process to the PostgreSQL server.
>Afterwards, the MS Access application can access the PostgreSQL database
>with no problem whatsoever.
>
>We'd be grateful for any assistance anyone can give us regarding this.
>
>
>Many thanks,
>Harry
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: milis-2@harrysufehmi.com
Subject: Re: Problem connecting from Windows 9x/Me
In-Reply-To: <4.3.2.7.2.20050429143651.020e7be0@sufehmi.com>
References: <4.3.2.7.2.20050427134929.021bced0@sufehmi.com> <4.3.2.7.2.20050429143651.020e7be0@sufehmi.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