Skip to Content.
Sympa Menu

freetds - Re: [freetds] FreeTDS + ODBC

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio AT vodafone.com>
  • To: "KC" <kcc1967 AT gmail.com>
  • Cc: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] FreeTDS + ODBC
  • Date: Wed, 27 Jul 2005 11:47:40 +0200


>
> Hi,
>
> Thanks for the info. I use ODBC without DM because I don't have
> unixODBC, iODBC ... on my system. I'm using SunOS 4.1.4 which
> is prettey old.
>
> I found my problem already. I add /etc/odbc.ini and all my
> problems gone !!!
> This may be a bug ??? since I used configuration option
> --prefix=/usr/local/freetds to build the source code.
>
> The location of freetds.conf is /usr/local/freetds/etc/freetds.conf,
> so I expect that the location of odbc.ini should be
> /usr/local/freetds/etc/odbc.ini .... BUT IT'S NOT.
> I need to use /etc/odbc.ini to make odbc/unittest PASS.
>
>
> Regards
> KC
>

Yes, you have to use /etc/odbc.ini or use $HOME/.odbc.ini or define a
ODBCINI environment. The main reason to use /etc/odbc.ini is that many
systems put odbc.ini in this place. To change default location in code
you can change line

#define SYS_ODBC_INI "/etc/odbc.ini"

in src/odbc/connectparams.c

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page