Solved

Oracle and CLOBs: string literal too long

Posted on 2001-08-09
5
946 Views
Last Modified: 2012-08-13
We're currently writing a VB app that uses Oracle in the backend.

And, in attempting to insert data into a table with a CLOB column, we're getting the following error:

ORA-01704     string literal too long


Now, I understand that there is a 2000 character limitation when using a straight INSERT pass-through statement. But, what are the other options?

Unfortunately, we cannot use stored procedures, and we cannot use OO4O (strictly ADO).

How does this affect me on UPDATES, also?


TIA,
-Jason
0
Comment
Question by:jlalexander
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 100 total points
ID: 6369902
Change your provider from the "Microsoft OLE DB Provider for Oracle" to the Oracle Provider for OLE DB.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 6369930
By the way I may have spoken to soon.  I have been using an Insert statement with the Oracle native provider.  However I just noticed that the maximum length is 1982.

There does seem to be a workaround, take a look at the following article on MSDN:

PRB: Error "String Literal Too Long" using Update or Insert on Oracle Table Q233515
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 6369939
I meant to say that the longest field is currently 1982, so I have not bridged yet the 2000 barrier.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7199871
Hi jlalexander,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept acperkins@devx's comment(s) as an answer.

jlalexander, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 5

Expert Comment

by:Netminder
ID: 7213350
Per recommendation, force-accepted.

Netminder
CS Moderator
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month4 days, 11 hours left to enroll

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question