freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: James Vanns <jimv AT canterbury.ac.uk>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: [freetds] What the hell have I done!?
- Date: Tue, 05 Aug 2003 12:43:21 +0100
Hello (again!), thanks for all help previously but since I modified my
code the other day I can't even connect to the M$ SQL Server properly!
When trying to connect to the server using the TDS library it fails and
the dump log shows this:
Sending packet @ 2003-08-05 12:37:07.133714
0000 01 01 00 22 00 00 01 00 73 00 65 00 6c 00 65 00 |..."....
s.e.l.e.|
0010 63 00 74 00 20 00 40 00 40 00 73 00 70 00 69 00 |c.t. .@.
@.s.p.i.|
0020 64 00 |d.|
2003-08-05 12:37:07.134595 processing result tokens. marker is 0()
2003-08-05 12:37:07.134610 inside tds_process_default_tokens() marker is
0()
Unknown marker: 0(0)!!
2003-08-05 12:37:07.134628 tds_set_spid() failed
2003-08-05 12:37:07.134639 leaving tds_process_login_tokens() returning
0
Why would tds_set_spid() fail? Why should it suddenly start doing this!?
I havn't even changed the login code:
TDSSOCKET* login (TDSLOGIN *credentials) {
TDSCONNECTINFO *info = NULL;
TDSSOCKET *socket = tds_alloc_socket (context, BUFSIZ);
if (!socket)
return NULL;
tds_set_parent (socket, NULL);
info = tds_read_config_info (NULL, credentials, context->locale);
if (!info)
return NULL;
if ((tds_connect (socket, info)) == TDS_FAIL)
return NULL;
tds_free_connect (info);
return socket;
}
Thanks yet again!
Jim
--
James Vanns BSc (Hons) MCP
Linux Systems Administrator
Senior Software Engineer (Linux / C & C++)
Canterbury Christ Church University College
Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x24045370
-
[freetds] What the hell have I done!?,
James Vanns, 08/05/2003
- <Possible follow-up(s)>
-
RE: [freetds] What the hell have I done!?,
Thompson, Bill D (London), 08/05/2003
- RE: [freetds] What the hell have I done!?, James Vanns, 08/05/2003
Archive powered by MHonArc 2.6.24.