Skip to Content.
Sympa Menu

freetds - [freetds] Determining buffer size when retrieving data

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Magnus Bäck <magnus AT dsek.lth.se>
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] Determining buffer size when retrieving data
  • Date: Sun, 15 Aug 2004 01:29:09 +0200

Is there a way to determine what destination buffer size is required
when using dbdata()/dbconvert() or dbbind() to retrieve and convert
column data of any type to string form? If not an exact number of bytes,
at least a worst-case figure? Because with newer protocol versions,
a CHAR or VARCHAR can hold >255 characters, yes? Trial-and-error with
increasing buffer size is of course always available, but it'd be nice
to avoid that method.

I have searched the FreeTDS documentation as well as Sybase's own,
and the archives for this list, but to no avail.

--
Magnus Bäck
magnus AT dsek.lth.se




Archive powered by MHonArc 2.6.24.

Top of Page