Skip to Content.
Sympa Menu

freetds - RE: [freetds] output parameters and "unknown marker"

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] output parameters and "unknown marker"
  • Date: Thu, 6 Jan 2005 15:21:17 -0500

Updated http://www.freetds.org/tds.html#172.

Thanks, Freddy.

--jkl


-----Original Message-----
From: freetds-bounces AT lists.ibiblio.org
[mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of Frediano Ziglio
Sent: Thursday, January 06, 2005 1:19 PM
To: FreeTDS Development Group
Subject: RE: [freetds] output parameters and "unknown marker"


Il giorno gio, 06-01-2005 alle 12:00 -0500, Lowden, James K ha scritto:
> > From: Thompson, Bill D (London)
> > Sent: Thursday, January 06, 2005 11:33 AM
> >
> > certainly our code seems not to handle the data that's coming our
way...
> > I think the issue might be with using TDS 8.0 rather than 7.0 - I
didn't know there was a difference in the AC(param) token between these
two versions but there does appear to be...
>
> Bill,
>
> Could it be that datatype 3D (datetime) should be treated as variable
length?
>
> Here's my analysis of the packet, based on
http://www.freetds.org/tds.html#responses:
>
> Return Status:
> 79 00 00 00 00
> (zero)
>
>
> Output Parameter 1:
> ac 1100 05 4000 6c00 6100 7300 7400 01 3d 00 00 00 3d 00
> (5-char name) (5 bytes unk.) ^^ length?
>
>
> Output Parameter 2:
> ac 1100 05 4000 7000 7200 6500 7600 01 3d 00 00 00 3d 00
> (5-char name) (5 bytes unk.) ^^ length?
>
> Process Done:
> fe 0000 e000 01000000
> (no more results, row count not valid)
>
> I imagine the "unknown" bytes are collation data.
>
>

No unknown should be

01 flags
3d 00 00 00 usertype
3d type

Usually under mssql bit 0 on status means nullable. It seems that in
some condition mssql return for nullable datetime using not nullable
type and nullable flag. As you can see parameter in input are passed
using not nullable type, perhaps this cause the problem.

Declaration of pdtGetDealRevalDates would help.

freddy77


-----------------------------------------
The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the original
message. Please note that we do not accept account orders and/or instructions
by e-mail, and therefore will not be responsible for carrying out such orders
and/or instructions.
If you, as the intended recipient of this message, the purpose of which is to
inform and update our clients, prospects and consultants of developments
relating to our services and products, would not like to receive further
e-mail correspondence from the sender, please "reply" to the sender
indicating your wishes. In the U.S.: 1345 Avenue of the Americas, New York,
NY 10105.






Archive powered by MHonArc 2.6.24.

Top of Page