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 -> ODBC SQL_LONGVARCHAR problems

ODBC SQL_LONGVARCHAR problems

From: <mira_at_primus.com>
Date: Wed, 07 Apr 1999 17:50:31 GMT
Message-ID: <370b9983.8153654@news.earthlink.net>


I have an ODBC program that uses SQLBindParameter followed by SQLExecute to insert character data. It is working fine to Access and SQLServer but we're having trouble with Oracle. We originally tried defining the fields in the Oracle database as CLOB, but that didn't work. Then we tried VARCHAR2 which was what was suggested to us by Oracle, but we still get an error saying

ORA-01461 can bind a LONG value only for insert into a LONG column

There are a couple of problems with using a LONG column. One is that one of our tables has two of these fields, and you can only have one LONG per table. But even in the table where we had only one, when we change it to a LONG, the data gets truncated to about 120 characters.

any ideas on how to get this character data over to Oracle? The program needs to work on databases other than Oracle also, since most of our customers don't use Oracle.

Mira Lieberman mira_at_primus.com Received on Wed Apr 07 1999 - 12:50:31 CDT

Original text of this message

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