[freetds] Driver's SQLAllocEnv() failed - libtdsodbc.so

Lowden, James K LowdenJK at bernstein.com
Mon Dec 16 15:11:45 EST 2002


> From: ZIGLIO Frediano [mailto:Frediano.Ziglio at vodafoneomnitel.it]
> Sent: December 16, 2002 6:08 AM
>
> > I'd like to use the freetds libraries with iODBC to connect 
> > to a remote SQL Server (v6.5).  Is that possible?
> 
> > here is my odbc.ini 
> > ------------------------------
> > [ODBC Data Sources]
> > SBS = SQL Server
> > 
> > [ODBC]
> > Debugfile=/tmp/odbc.out
> > 
> > [SBS]
> > Description     = SQL Server
> > UID        = xxxxxxx
> > PWD        = xxxxxxxx
> > TDSHOST            = 12.178.18.4
> > TDSPORT            = 1433
> > TDSVER             = 4.2
> > Driver          = /usr/local/lib/libtdsodbc.so
> > Database        = BSRes2
> > ServerName      = SBS
> > 
> 
> TDSHOST, TDSPORT and TDSVER should be environment string... 
> nothing to do
> with odbc.ini!
> PWD should not go to odbc.ini...
> SBS should be in freetds.conf

There is a PWD line in samples/odbc.ini.  Is it not used?  

Chris, you should have this in your freetds.conf:

[SBS]
	host            = 12.178.18.4
	port            = 1433
	tds version     = 4.2

I recommend you indicate your host by name, for sanity's sake.  FreeTDS
won't mind, though, either way.  

--jkl


The information contained in this transmission may contain privileged and
confidential information 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.





More information about the FreeTDS mailing list