pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dieter Mueller (BOI GmbH) <dieter.mueller@boi.at>
To: pgsql-odbc@postgresql.org
Subject: Re: [MASSMAIL]Re: use psqlodbc on Windows without Windows driver manager?
Date: Thu, 14 Apr 2016 12:10:14 +0200
Message-ID: <570F6C86.5040007@boi.at> (raw)
In-Reply-To: <570F47EA.2030209@prisma-computer.de>
References: <570B5332.8040406@boi.at>
	<0A3221C70F24FB45833433255569204D1F54C10F@G01JPEXMBYT05>
	<570C98AC.8080907@boi.at>
	<570E07EE.7@prisma-computer.de>
	<0A3221C70F24FB45833433255569204D1F55026F@G01JPEXMBYT05>
	<570F47EA.2030209@prisma-computer.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

Hello Takayuki and Malte,

there is another way:
you can create an import library of the ODBC driver (using MS tools 
DUMPBIN and LIB), and link your application with the resulting .LIB-file 
instead of Microsoft's odbc32.lib.

Kind regards,
Dieter Mueller


Am 14.04.2016 um 09:34 schrieb Prisma Computer - M. Neumann:
> Hello Takayuki,
>
> yes it is possible, we use it.
>
> But it is a little bit tricky, because you must load the driver dll by
> yourself with the loadLibrary function. After that you have to import
> alle your needed dll-functions with the GetProcAddress.
>
> Kind Regards,
> Malte
>
>
> Am 14.04.2016 um 02:16 schrieb Tsunakawa, Takayuki:
>> Hello, Malte,
>>
>>
>> Dieter wants to use the driver without registering it in the
>> registry.  Is it really possible?  I know I can connect to the
>> database without "registering the data source" with the connection
>> string for SQLDriverConnect() like this:
>>
>>      DRIVER={PostgreSQL ANSI
>> Driver};Servername=127.0.0.1;Port=5432;UID=xxx;Password=yyy;Database=postgres
>>
>>
>> FYI, I tried setting the absolute path of the driver DLL file to
>> DRIVER keyword, but it didn't work.
>>
>> Regards
>> Takayuki Tsunakawa
>>
>>
>>> -----Original Message-----
>>> From: pgsql-odbc-owner@postgresql.org
>>> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Prisma Computer -
>>> M. Neumann
>>> Sent: Wednesday, April 13, 2016 5:49 PM
>>> To: pgsql-odbc@postgresql.org
>>> Subject: Re: [ODBC] use psqlodbc on Windows without Windows driver
>>> manager?
>>>
>>> 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
>>
>


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



view thread (9+ messages)  latest in thread

Message-ID: <570F6C86.5040007@boi.at>
Permalink:  ../570F6C86.5040007@boi.at/
Also on:    postgresql.org/message-id/570F6C86.5040007@boi.at

 · 

reply

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: dieter.mueller@boi.at
  Subject: Re: [MASSMAIL]Re: use psqlodbc on Windows without Windows driver manager?
  In-Reply-To: <570F6C86.5040007@boi.at>
  References: <570B5332.8040406@boi.at> <0A3221C70F24FB45833433255569204D1F54C10F@G01JPEXMBYT05> <570C98AC.8080907@boi.at> <570E07EE.7@prisma-computer.de> <0A3221C70F24FB45833433255569204D1F55026F@G01JPEXMBYT05> <570F47EA.2030209@prisma-computer.de> <570F6C86.5040007@boi.at>

* 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