Skip to Content.
Sympa Menu

freetds - RE: [freetds] What the hell have I done!?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Thompson, Bill D (London)" <ThompBil AT exchange.uk.ml.com>
  • To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] What the hell have I done!?
  • Date: Tue, 5 Aug 2003 14:13:00 +0100

James,

Is this the full dump ?

Could you try setting the TDSDUMPCONFIG env variable and showing us the
output.

Do you ever get a "Received packet" section in your dump ?

Bill

> -----Original Message-----
> From: James Vanns [SMTP:jimv AT canterbury.ac.uk]
> Sent: 05 August 2003 12:43
> To: FreeTDS Development Group
> Subject: [freetds] What the hell have I done!?
>
> 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 mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds





Archive powered by MHonArc 2.6.24.

Top of Page