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: Vlad <vlad AT rmcs.com.au>
  • To: freetds AT lists.ibiblio.org
  • Subject: RE: [freetds] SQLDescribeColumn and tds_next_placeholders_ucs2le
  • Date: Mon, 22 Mar 2004 12:26:26 +1100

> 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.

> Fixed in CVS. A problem with " termination.

Thanks a lot!!! It works fine now :)


Vlad





Archive powered by MHonArc 2.6.24.

Top of Page