Skip to Content.
Sympa Menu

freetds - Re: [freetds] problems configuring..

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Peter Harvey <pharvey AT codebydesign.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] problems configuring..
  • Date: Tue, 25 Feb 2003 06:17:47 -0800

-bash-2.05b# isql -v P450 cgiscript corv3tt31
[unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failed
[ISQL]ERROR: Could not SQLConnect

What could it be?


No obvious reason from what I can see. Here are some more things to try;

1 - Use a host name instead of an IP. I simply add a line to /etc/hosts when DSN would fail (such as in your case). Example line for /etc/hosts...

192.168.1.54 COSTLYSERVER

2 - I use "Servername" not "Server" but this may have changed since I last updated my FreeTDS source. So in my case the line in the ~/.odbc.ini file would look something like this;

Servername=COSTLYSERVER

Hope this helps!
Peter





Archive powered by MHonArc 2.6.24.

Top of Page