Skip to Content.
Sympa Menu

freetds - [freetds] maxlength of CS_TEXT_TYPE - 2GB?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Erik Bryn <erik.bryn AT gmail.com>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] maxlength of CS_TEXT_TYPE - 2GB?
  • Date: Sat, 21 Aug 2010 22:59:19 -0700

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




Archive powered by MHonArc 2.6.24.

Top of Page