Skip to Content.
Sympa Menu

freetds - [freetds] tds_connect() bails on win32

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: James Vanns <jimv AT canterbury.ac.uk>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: [freetds] tds_connect() bails on win32
  • Date: Fri, 13 Aug 2004 12:42:11 +0100

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






Archive powered by MHonArc 2.6.24.

Top of Page