Cannot access MSSQL db
James Cameron
cameron at fax.sno.cpqcorp.net
Mon Apr 8 13:50:39 EDT 2002
Brian Bruns wrote:
> Problem is that the call to tds_connect() returns a pointer to TDSSOCKET
> in the dbopen() function. So that's about all the information that is
> propagated from libtds -> dblib. I think the other way of not
> generating an error at all had more complaints ;-)
I agree.
I've modified src/tds/login.c to generate a touch more detail on the
connect() failure. This should help with future problem reports, a
little bit. I'm thinking I should put in more detail there, like IP
address and port number. Comments?
While I was there, I also fixed a socket leak; if a PHP script in an
Apache process kept failing to connect, it seems the process might
eventually run out of sockets. A new socket would be allocated for each
connection attempt.
Please review it for me, Brian?
--
James Cameron (james.cameron at compaq.com)
http://www.linux.org/ http://www.linux.org.au/ http://www.freshmeat.net/
More information about the FreeTDS
mailing list