Re: nvarchar(max) field in result set identified as WVARCHAR, not WLONGVARCHAR

Frediano Ziglio <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <CAHt6W4c5kRjB1xRPMjqFUA4+zueyydPOszNV2+JiVqh3QYA+2g@mail.gmail.com>
2014-09-24 21:28 GMT+01:00 Matt Grimm <[email protected]>:
> Hi,
>
> When I use SQLColAttributeW(... SQL_DESC_CONCISE_TYPE ...) to ask FreeTDS
> for the type of an nvarchar(max) column in my result set, it calls it a
> SQL_WVARCHAR (-9). However, when I ask it for the type of an ntext field,
> it calls it a SQL_WLONGVARCHAR. Since nvarchar(max) is the replacement for
> ntext[1], shouldn't FreeTDS return -10 as the type of nvarchar(max) too?
>
> Thanks,
> m.
>


Hi,
  probably it should but actually is the same reply I get from MS ODBC.

Frediano
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.