Re: Using TADODataset with DB2

From: Arnie Mauer (xxx_at_nowhere.net)
Date: 03/11/04


Date: Thu, 11 Mar 2004 11:46:07 -0500


"Emile Cronje" <emile@mosaicsoftware.com> wrote in message
news:405068cb$1@newsgroups.borland.com...
>
> Hi
>
> I am using a TADODataset component with CursorLocation = clUseServer and
CursorType = ctDynamic.
>
> When connected to a DB2 database, I set the CommandText property of the
TADODataset component to something simple, like 'select * from table_x'.
>
> When I call TADODataset.Open, I get the following message:
> 'Multiple-step OLE DB operation generated errors. Check each OLE DB status
value, if available. No work was done'

That's one of my *favorite* error messages.

>
> Any ideas, please? Does DB2 support the notion of server side cursors?

Yes, it does. What driver are you using? DB2 OLEDB or MSDASQL over the DB2
ODBC driver? IBM can't seem to produce a decent OLEDB driver.

Try using a bidirectional cursor type. We've seen this error most when
there's a datatype mismatch or typo in a column or table name - although
your statement seems pretty simple. What platform is DB2 on?

- Arnie

>
> Thanks



Relevant Pages

  • Re: Problem updating a record containing a negative Value
    ... Like for me it looks like a bug in a driver, because it does not make any ... > Set cnn = New ADODB.Connection ... > .CursorLocation = adUseServer ... > Set rec = New ADODB.Recordset ...
    (microsoft.public.data.ado)
  • Using TADODataset with DB2
    ... I am using a TADODataset component with CursorLocation = clUseServer and CursorType = ctDynamic. ... 'Multiple-step OLE DB operation generated errors. ...
    (borland.public.delphi.database.ado)