Skip to Content.
Sympa Menu

freetds - Re: [freetds] how to enable unixodbc after building freeTDS?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] how to enable unixodbc after building freeTDS?
  • Date: Tue, 15 Nov 2005 11:31:07 -0500

> From: Bing Du
> Sent: Tuesday, November 15, 2005 10:17 AM
>
> FreeTDS is new to me.

Welcome to the project, Bing.

> 1. why tsql shows TDS version as 5.0 rather than 8.0 as freetds.conf
> shows?

'tsql -C' shows the compiled-in defaults, the values used if not
specified in freetds.conf. (Note that the -C parameter doesn't require
a server name, which would affect many settings.)

There isn't an easy way to display the effective settings for a
connection.

> 2. I did not specify any parameters for ./configure when freeTDS
> was built. tsql shows 'no' for unixodbc currently. Any way to
> let freetds use unixodbc instead of iodbc? Where does FreeTDS look
> for unixodbc in the building process? I'm wondering what prevented
> freeTDS from finding unixodbc.

The configure script tries to suss what's installed, and found iODBC.
IIRC, it settles for the first one it finds.

Overriding that is no problem:

$ ./configure --help |grep odbc
--disable-odbc do not attempt to build odbc the driver
--with-iodbc=DIR build odbc driver against iODBC in DIR
--with-unixodbc=DIR build odbc driver against unixODBC in DIR
--with-odbc-nodm=DIR build odbc without driver manager (headers in
DIR)

To use your favorite DM, throw your favorite switch. See also
http://www.freetds.org/userguide/config.htm.

And have fun. :-)

--jkl





-----------------------------------------
The information contained in this transmission may be privileged and
confidential and is intended only for the use of the person(s) named
above. If you are not the intended recipient, or an employee or agent
responsible
for delivering this message to the intended recipient, any review,
dissemination,
distribution or duplication of this communication is strictly prohibited. If
you are
not the intended recipient, please contact the sender immediately by reply
e-mail
and destroy all copies of the original message. Please note that we do not
accept
account orders and/or instructions by e-mail, and therefore will not be
responsible
for carrying out such orders and/or instructions. If you, as the intended
recipient
of this message, the purpose of which is to inform and update our clients,
prospects
and consultants of developments relating to our services and products, would
not
like to receive further e-mail correspondence from the sender, please "reply"
to the
sender indicating your wishes. In the U.S.: 1345 Avenue of the Americas, New
York,
NY 10105.




Archive powered by MHonArc 2.6.24.

Top of Page