Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqGiG-0005nv-CB for pgsql-odbc@arkaria.postgresql.org; Wed, 13 Apr 2016 09:03:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aqGiF-0000QH-VJ for pgsql-odbc@arkaria.postgresql.org; Wed, 13 Apr 2016 09:03:52 +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.84_2) (envelope-from ) id 1aqGiF-0000Q8-EI for pgsql-odbc@postgresql.org; Wed, 13 Apr 2016 09:03:51 +0000 Received: from email.boi.at ([85.193.140.130]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1aqGiC-0006du-Cg for pgsql-odbc@postgresql.org; Wed, 13 Apr 2016 09:03:50 +0000 Received: from email (localhost [127.0.0.1]) by email.boi.at (BOI_MailServer) with ESMTP id 2A1BEAE22A6; Wed, 13 Apr 2016 11:03:44 +0200 (CEST) Received: from [192.168.11.10] (intfw.boi.at [192.168.1.2]) by email.boi.at (BOI_MailServer) with ESMTPSA id CA5DCAE22A4 for ; Wed, 13 Apr 2016 11:03:43 +0200 (CEST) Subject: Re: [MASSMAIL]Re: use psqlodbc on Windows without Windows driver manager? To: pgsql-odbc@postgresql.org References: <570B5332.8040406@boi.at> <0A3221C70F24FB45833433255569204D1F54C10F@G01JPEXMBYT05> <570C98AC.8080907@boi.at> <570E07EE.7@prisma-computer.de> From: "Dieter Mueller (BOI GmbH)" Organization: BOI GmbH Message-ID: <570E0B72.1030905@boi.at> Date: Wed, 13 Apr 2016 11:03:46 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <570E07EE.7@prisma-computer.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-KLMS-Rule-ID: 4 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Status: not scanned, disabled by settings X-KLMS-AntiSpam-Interceptor-Info: not scanned X-KLMS-AntiPhishing: Clean, 2016/04/12 09:02:30 X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server, version 8.0.1.705, bases: 2016/04/13 03:15:00 #7487816; khse: 2014-01-23 rollback X-KLMS-AntiVirus-Status: Clean, skipped X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org Hello Malte, the application already calls SQLDriverConnect, which works fine with and without the driver manager. Thank you very much :-) Kind regards, Viele Grüße, Dieter Mueller Am 13.04.2016 um 10:48 schrieb Prisma Computer - M. Neumann: > Hello Dieter, > > it is possible to use the odbc-driver without the windows driver manager. > > You only need to change the connection-function. Instead of Calling > SQLConnect use SQLDriverConnect with the correct connectionstring. > > Kind regards, > Malte > > Am 12.04.2016 um 08:41 schrieb Dieter Mueller (BOI GmbH): >> Hello Takayuki, >> >> thanks for your reply :-) >> Calling the ODBC driver via driver manager requires the driver to be >> installed in Windows (means: written in the Windows registry). But a >> test distribution of our (ODBC-)application should be able to run >> without the need of any installation procedure and without >> administrator rights. >> IBM's DB2-CLI (call level interface) can be operated in 2 modes: with >> or without an ODBC driver manager. So i hoped that the PostgreSQL ODBC >> driver has this ability, too. >> >> Kind regards, >> Dieter Mueller >> >> >> -------- Original-Nachricht -------- >> Betreff: Re: [ODBC] use psqlodbc on Windows without Windows driver >> manager? >> Von: Tsunakawa, Takayuki >> An: Dieter Mueller (BOI GmbH) , >> pgsql-odbc@postgresql.org >> Datum: 12.04.2016 02:35 >> >>>> From: pgsql-odbc-owner@postgresql.org >>>> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Dieter Mueller >>>> (BOI >>>> GmbH) >>>> is psql-odbc designed to work on Windows without the Windows ODBC >>>> driver >>>> manager? >>>> >>>> (I want to prepare a distribution of our software for testing >>>> purposes that >>>> can be used without any installation on Windows - no ODBC driver >>>> installation >>>> as well) >>>> >>>> I created my own psqlodbc30a.lib of psqlodbc30a.dll by calling MS tools >>>> "dumpbin /exports ..." and "lib /def:...", then I linked my ODBC >>>> application >>>> with the new psqlodbc30a.lib instead of Microsoft's obdc32.lib and >>>> odbccp32.lib. >>> >>> I don't think it's reasonable. According to the ODBC spec, the >>> Driver Manager does many tasks, including error checks, and the ODBC >>> driver depends on it. >>> >>> Why do you want to avoid linking with odbc32.lib? >>> >>> Regards >>> Takayuki Tsunakawa >>> >> >> > -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc