maxlength of CS_TEXT_TYPE - 2GB?

Erik Bryn <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
Hi,

I'm new to interfacing with FreeTDS in C. While attempting to fetch
text, using ct-lib, from MSSQL 2008. I'm seeing the maxlength of the
field is 2GB, which is obviously too large to malloc. What's the best
practice for reading in data of unknown length?

Thanks,
- Erik
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.