[freetds] FreeTDS + ODBC
ZIGLIO, Frediano, VF-IT
Frediano.Ziglio at vodafone.com
Wed Jul 27 05:47:40 EDT 2005
> 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.
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"
More information about the FreeTDS