Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aqGTl-0005Dr-DU for pgsql-odbc@arkaria.postgresql.org; Wed, 13 Apr 2016 08:48:53 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aqGTk-0005lK-T7 for pgsql-odbc@arkaria.postgresql.org; Wed, 13 Apr 2016 08:48: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 1aqGTk-0005lD-EY for pgsql-odbc@postgresql.org; Wed, 13 Apr 2016 08:48:52 +0000 Received: from mout.kundenserver.de ([212.227.126.134]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84_2) (envelope-from ) id 1aqGTh-0006Kz-5P for pgsql-odbc@postgresql.org; Wed, 13 Apr 2016 08:48:51 +0000 Received: from mailserver.prisma-computer.local ([85.216.110.214]) by mrelayeu.kundenserver.de (mreue003) with ESMTPSA (Nemesis) id 0LwmRY-1bsKHe2htA-016RAR for ; Wed, 13 Apr 2016 10:48:46 +0200 Received: from [192.168.1.40] (pc-malte.prisma-computer.local [192.168.1.40]) by mailserver.prisma-computer.local with ESMTP ; Wed, 13 Apr 2016 10:47:13 +0200 Subject: 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> From: "Prisma Computer - M. Neumann" Message-ID: <570E07EE.7@prisma-computer.de> Date: Wed, 13 Apr 2016 10:48:46 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <570C98AC.8080907@boi.at> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:D/Mh7fhPvkIkoZspbKgxZHH25Bb6B10Yjz5eU9IfSfLxvjVJIDO NcbdL6omlsw00HsyFoc6xaPx2NJh35z9HWOifGLVxhcTc7N9kK7VSN7sZrirHfXYNZRRVdR ycDGPmNW9rSC+Gr1GqCyoh1+0F49mmA2SqqpwJOwPvmvpY0bLC57B+C5G3oI7KRAYlWfgdq qSi+M9wOSCFqr77fLw0qw== X-UI-Out-Filterresults: notjunk:1;V01:K0:PgsW0D2oBU8=:aDia3USZCutrQ6/qYBgn5G TT4RETM+bnQxcTOYGtmyZPIb0m5NsJSNlV2CG0RWb7QZ0MRWEba1GbuoqUl8rUweuXVw5wKU4 CzlVZXFQPRbGvFlP1Igj+lgYybgoonGZtLliL+PUYG1dw0Rcx0prceHVeAgkaeuxFcTKn33mm o3CI+kWpu2EHTlXAeuzZL224W4gNgd5gSTqHCtFmi8I2NT2X29A71pUUJcIou9S+4oZtr7+ti C2aED+PwInpde+FnkJIVUMeH9MCToIp64M4smqMli+moOAnOxyezRohV1tRMJRjxJoYVOceSb HlZsWPy45ihKjqaRsA8+neQIKsUvy/OCZ5G1Qx8o/b0er+s+EnarZUxboXusHTlZanJWdCZrc YmWG3xHXO0Z/EcpXvxznV+qlyimn4O4z0YB8rxqBdSMSKzbT9oDX/0LFaRuRgJTLaT6PVTXPP 9RJnJlKKxI6zOFY/0BosoegzP7id/mTWTdtF7IuiZLhs0Oisfz95Yb8TERbLSW0/S1rJ1HP6p PD6zCoWaVqU6e+a/9ovF5qb4XvhIpcUMhO6I31wj/m6tOzAflz+yEgIwKLtW2BsYYPM/1oLeO ESSfxSjK/5hKgDCovEWvqCLn2CUOgnlzIhOUbTDtsgRqvB+Ox/fY/hKSZR/XQZj1Yz/tbI8tV n4JMNOIoREKEYzBagu6UAQsA6jOB/TG1DVmzGOuooQvXHfAT5yeBHIBmFENqJZ00ev9zxshNR 2pFnmtP6B+WwpjlC X-Pg-Spam-Score: -2.6 (--) 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 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 >> > > -- Prisma Computer GmbH Sternallee 89 - 68723 Schwetzingen Fon 0 62 02.5 75 68 10 Fax 0 62 02.5 75 68 75 eMail: m.neumann@prisma-computer.de Internet: www.prisma-computer.de Geschäftsführung: Gerald Wilkens, Bernhard Goebel Amtsgericht Mannheim HRB 420986 S USt-IdNr.: DE 144 278 153 -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc