pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Prisma Computer - M. Neumann <m.neumann@prisma-computer.de>
To: pgsql-odbc@postgresql.org
Subject: Re: use psqlodbc on Windows without Windows driver manager?
Date: Wed, 13 Apr 2016 10:48:46 +0200
Message-ID: <570E07EE.7@prisma-computer.de> (raw)
In-Reply-To: <570C98AC.8080907@boi.at>
References: <570B5332.8040406@boi.at>
	<0A3221C70F24FB45833433255569204D1F54C10F@G01JPEXMBYT05>
	<570C98AC.8080907@boi.at>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

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 <tsunakawa.takay@jp.fujitsu.com>
> An: Dieter Mueller (BOI GmbH) <dieter.mueller@boi.at>, 
> pgsql-odbc@postgresql.org <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



view thread (9+ messages)  latest in thread

Message-ID: <570E07EE.7@prisma-computer.de>
Permalink:  ../570E07EE.7@prisma-computer.de/
Also on:    postgresql.org/message-id/570E07EE.7@prisma-computer.de

 · 

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: m.neumann@prisma-computer.de
  Subject: Re: use psqlodbc on Windows without Windows driver manager?
  In-Reply-To: <570E07EE.7@prisma-computer.de>
  References: <570B5332.8040406@boi.at> <0A3221C70F24FB45833433255569204D1F54C10F@G01JPEXMBYT05> <570C98AC.8080907@boi.at> <570E07EE.7@prisma-computer.de>

* 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