pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Ayers <aayers@eldocomp.com>
To: Ben Ramsey <br@benandliz.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: Adding long text to a text field generates an error
Date: Mon, 19 Jan 2004 11:59:31 -0700
Message-ID: <400C2913.7060901@eldocomp.com> (raw)

Ben Ramsey wrote:
> Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
> Multiple-step OLE DB operation generated errors. Check each OLE DB 
> status value, if available. No work was done.
> 
> This error doesn't mean  much to me.  I've spent a month researching it 

Google on "Multiple-step OLE DB operation generated errors" - you will 
get a ton of hits on this. From what I remember, there are Windows API 
calls to enumerate through the error(s) that were generated. If you can 
do this, sometimes it might shed some light on what the problem is.

Also - google on "80040e21" (the error number - perhaps also the longint 
version, as well) - from what I have googled, this error seems to be 
because you are trying to insert more data than the field size will hold 
(?), as you note...

> I've double-checked to make sure the column is of datatype "text" and 
> not anything else.  It is.  So, it should accept unlimited text, right?

This is what is bizarre - yeah, it should hold "unlimited" (actually, I 
think the limit is 2 gig). Now, you noted in a later email the settings 
in your driver setup. This might be the issue - play around with it. Set 
it to a higher number, and try inserting that much, then more - and see 
if when the error occurs changes. If so, then you know that is it. You 
might also uncheck the "treat as longvarchar", see if that helps. If you 
have to have this checked, and setting the number to something larger 
helps - then set it to a *very* large number, something you would never hit.

What is really perplexing me is that I have a VB app that uses such 
fields, and I left the driver settings as is, and I haven't run into any 
problems (and this app does have data in these fields in excess of 8190 
bytes).

Hope something of this helps...

Andrew Ayers
Phoenix, Arizona

-- CONFIDENTIALITY NOTICE --

This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email, and delete the message. Thank you.



view thread (15+ messages)  latest in thread

Message-ID: <400C2913.7060901@eldocomp.com>
Permalink:  ../400C2913.7060901@eldocomp.com/
Also on:    postgresql.org/message-id/400C2913.7060901@eldocomp.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: aayers@eldocomp.com, br@benandliz.com
  Subject: Re: Adding long text to a text field generates an error
  In-Reply-To: <400C2913.7060901@eldocomp.com>
  References: <400C2913.7060901@eldocomp.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox