[freetds] tds_connect() bails on win32

James Vanns jimv at canterbury.ac.uk
Fri Aug 13 07:42:11 EDT 2004


All,

When trying to connect to a SQL Server machine on Linux with FreeTDS all
is well. However, when trying to connect to the same machine using a
win32 client it bails.

I compiled the FreeTDS library (DLL) etc. but when trying to connect it
spits this out:

src/tds/login.c: tds_connect (timed): Invalid argument.

And in the dump file the point it gets to is:

Connecting to <IP Address> on port <Port>, TDS <Version>.

When doing a few tests I can confirm that it bails at this point in the
TDS source (login.c:334):

retval = connect (tds->s, (struct sockaddr *) &sin, sizeof (sin));
...
if (retval < 0)
...

However, I don't know why! Any ideas?

Regards

Jim

-- 
James Vanns BSc (Hons) MCP
Senior Software Engineer (Linux / C & C++)
Canterbury Christ Church University College
Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x24045370





More information about the FreeTDS mailing list