Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> VC++ 4.2, ODBC 2.0, CString gets truncated

VC++ 4.2, ODBC 2.0, CString gets truncated

From: Mike McGaff <McGaff_at_fwva.saic.com>
Date: 1997/03/24
Message-ID: <33371C6E.35D7@fwva.saic.com>#1/1

I'm querying using Oracle's ODBC 2.0 and one column is VARCHAR2(500). My
VC++ 4.2 recordset variable is defined as a CString. When the text goes over 255 char's, I get back return code #1021 - Data truncated, and the recordset has no
information at all (i.e. the query errors out). 0-255 char's works fine and
all other columns for the row are returned.

As a related issue that I haven't tested yet, there's another column defined
as LONG, so that it can store "unlimited" text. I want to be able to query
that from VC++ as well.

Any clues on how to fix this? Received on Mon Mar 24 1997 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US