X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id AC6139FB331 for ; Wed, 30 Aug 2006 15:30:43 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 68709-06-4 for ; Wed, 30 Aug 2006 18:30:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by postgresql.org (Postfix) with ESMTP id EB54F9FB321 for ; Wed, 30 Aug 2006 15:30:37 -0300 (ADT) Received: from mailgate.vale-housing.co.uk ([194.217.48.34] helo=vale-housing.co.uk) by anchor-post-30.mail.demon.net with esmtp (Exim 4.42) id 1GIUpg-000ATH-2t for pgsql-odbc@postgresql.org; Wed, 30 Aug 2006 18:30:36 +0000 Received: from 89.240.228.119 ([89.240.228.119]) by ratbert.vale-housing.co.uk ([192.168.1.106]) with Microsoft Exchange Server HTTP-DAV ; Wed, 30 Aug 2006 18:30:36 +0000 User-Agent: Microsoft-Entourage/11.2.5.060620 Date: Wed, 30 Aug 2006 19:35:24 +0100 Subject: Re: Latest ODBC driver? From: Dave Page To: Mark Morgan Lloyd , Message-ID: Thread-Topic: [ODBC] Latest ODBC driver? Thread-Index: AcbMUfK+H84Z/jntR06CD7ri29v3rQAERuJ/ In-Reply-To: <44F5BD96.1199F67@telemetry.co.uk> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200608/165 X-Sequence-Number: 8129 On 30/8/06 17:32, "Mark Morgan Lloyd" wrote: > I suspect that both driver series- i.e. "official" ODBC and ODBCng- are up > against problems with the version of the ODBC DLLs they are expecting. If that's the case, then it's the first time I recall it ever happening in 8 years or more on this list :-) So, anyway, as one of many people who've most releases of the driver in production for many years I'm keen to see this resolved, so let's try some slightly more focused testing. The latest driver code from Inoue-san is almost certainly the best bet of all - it is based on the 07 series which you have working, and for the most part only adds new functionality over that series. It's also the only branch anyone will fix bugs in. As you mention you are running a BDE based app you absolutely need to run an ANSI build of the driver, so... 1) On a test system, uninstall any PostgreSQL drivers to be safe. 2) Download the ANSI driver from http://www.geocities.jp/inocchichichi/psqlodbc/index.html. Unpack into your system32 directory. 3) Register the driver by copying and pasting the following into psqlodbc.reg (not including the ==== marks), then importing it into the registry using regedit: ============================================================ REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI] [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers] "PostgreSQL ANSI"="Installed" [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\PostgreSQL] "APILevel"="1" "ConnectFunctions"="YYN" "Driver"="PSQLODBCA.DLL" "DriverODBCVer"="03.00" "FileUsage"="0" "Setup"="PSQLODBCA.DLL" "SQLLevel"="1" "UsageCount"=dword:00000001 ============================================================ I don't recall if NT4 has Regedit - if not, you may have to manually add the values using regedt32.exe. 4) Check the driver appears in the driver manager and that the version shown matches the DLLs. 5) Setup a DSN pointing to your 7.x server. 6) Start your app, and check it works. If you find a failure, close the app, enable MyLog in the DSN, then restart the app and reproduce the failure in the most minimal way you can (to keep the log small). Post the log for review. 7) If that works, try the 8.1 server. Do the previous log dance if you find a failure. Once we have a log of the actual failure, we should be able to see what is going wrong. The installation pain above is only temporary btw. When we release, the installer will include both driver builds. Regards, Dave.