Re: maxlength of CS_TEXT_TYPE - 2GB?
Frediano Ziglio <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
Il giorno 22/ago/2010, alle ore 07.59, Erik Bryn <[email protected]> ha scritto: > 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 Well, use lenght instead of maxlenght and allocate as long as you need Freddy77