Skip to Content.
Sympa Menu

freetds - RE: [freetds] SQLDescribeColumn and tds_next_placeholders_ucs2le

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio AT vodafone.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] SQLDescribeColumn and tds_next_placeholders_ucs2le
  • Date: Mon, 22 Mar 2004 08:45:29 +0100


> > I think it's SQLDescribeCol. SQLDescribeCol do not return the char
> > representation, it return type length, so 16 it right. You
> should use
> > SQLColAttribute(SQL_DESC_DISPLAY_SIZE) to get display size.
> >
>
> Thanks for a tip with SQLColAttribute. Really the reason I wrote about
> SQLDescribeCol is that if I run my program under DOS with MS
> version of
> ODBC SQLDescribeCol it returns column size 36. It is just a little
> confusing about which function is right to use.
>

I don't think MS update ODBC for DOS that much :)
This is the reason. ODBC use TDS protocol version 4.2 so server cannot
send GUID data and send just GUID converted to varchar... So you see the
print size..

> > Fixed in CVS. A problem with " termination.
>
> Thanks a lot!!! It works fine now :)
>

James should release 0.62.2 to fix this and some other issues.

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page