freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
[freetds] Determining buffer size when retrieving data
- 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
-
[freetds] Determining buffer size when retrieving data,
Magnus Bäck, 08/14/2004
- Re: [freetds] Determining buffer size when retrieving data, Michael Peppler, 08/15/2004
Archive powered by MHonArc 2.6.24.