X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 9E3EFD1CC8D for ; Mon, 19 Jan 2004 19:00:31 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 13205-02 for ; Mon, 19 Jan 2004 15:00:01 -0400 (AST) Received: from ecintweb.eldocomp.com (ecintweb.eldocomp.com [205.159.99.8]) by svr1.postgresql.org (Postfix) with ESMTP id 7F4A9D1CC75 for ; Mon, 19 Jan 2004 14:59:57 -0400 (AST) Received: by ecintweb.eldocomp.com with XWall v3.28l ; Mon, 19 Jan 2004 11:59:42 -0700 From: Andrew Ayers To: Ben Ramsey Cc: "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 X-Assembled-By: XWall v3.28l Message-ID: <400C2913.7060901@eldocomp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/51 X-Sequence-Number: 3680 Ben Ramsey wrote: > Microsoft OLE DB Provider for ODBC Drivers error '80040e21' > Multiple-step OLE DB operation generated errors. Check each OLE DB=20 > status value, if available. No work was done. >=20 > This error doesn't mean much to me. I've spent a month researching it= =20 Google on "Multiple-step OLE DB operation generated errors" - you will=20 get a ton of hits on this. From what I remember, there are Windows API=20 calls to enumerate through the error(s) that were generated. If you can=20 do this, sometimes it might shed some light on what the problem is. Also - google on "80040e21" (the error number - perhaps also the longint=20 version, as well) - from what I have googled, this error seems to be=20 because you are trying to insert more data than the field size will hold=20 (?), as you note... > I've double-checked to make sure the column is of datatype "text" and=20 > not anything else. It is. So, it should accept unlimited text, right? This is what is bizarre - yeah, it should hold "unlimited" (actually, I=20 think the limit is 2 gig). Now, you noted in a later email the settings=20 in your driver setup. This might be the issue - play around with it. Set=20 it to a higher number, and try inserting that much, then more - and see=20 if when the error occurs changes. If so, then you know that is it. You=20 might also uncheck the "treat as longvarchar", see if that helps. If you=20 have to have this checked, and setting the number to something larger=20 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=20 fields, and I left the driver settings as is, and I haven't run into any=20 problems (and this app does have data in these fields in excess of 8190=20 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 w= hom it is addressed, and may contain information that is privileged, confid= ential and exempt from disclosure under applicable law. If you are not the = intended addressee, nor authorized to receive for the intended addressee, y= ou are hereby notified that you may not use, copy, disclose or distribute t= o anyone the message or any information contained in the message. If you ha= ve received this message in error, please immediately advise the sender by = reply email, and delete the message. Thank you.