X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 90F79538E6 for ; Fri, 29 Apr 2005 05:45:12 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 57360-06 for ; Fri, 29 Apr 2005 08:45:06 +0000 (GMT) Received: from mail.centrallibrary.net (unknown [64.92.164.19]) by svr1.postgresql.org (Postfix) with ESMTP id 0759E53792 for ; Fri, 29 Apr 2005 05:45:05 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mail.centrallibrary.net (Postfix) with ESMTP id A507222C030 for ; Fri, 29 Apr 2005 03:53:43 -0500 (CDT) Received: from mail.centrallibrary.net ([127.0.0.1]) by localhost (debian [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11518-10 for ; Fri, 29 Apr 2005 03:53:28 -0500 (CDT) Received: from laptop-papa.harrysufehmi.com (unknown [202.150.89.131]) by mail.centrallibrary.net (Postfix) with ESMTP id BED3F22C002 for ; Fri, 29 Apr 2005 03:53:21 -0500 (CDT) Message-Id: <4.3.2.7.2.20050429143651.020e7be0@sufehmi.com> X-Sender: milis-2@harrysufehmi.com@sufehmi.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Fri, 29 Apr 2005 15:06:19 +0700 To: pgsql-odbc@postgresql.org From: Harry Sufehmi Subject: Re: Problem connecting from Windows 9x/Me In-Reply-To: <4.3.2.7.2.20050427134929.021bced0@sufehmi.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at mail.centrallibrary.net X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200504/127 X-Sequence-Number: 5286 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 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 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