Error reading recordset from DB2/AS400
- From: ShaggyMoose <shaggymoose@xxxxxxxxx>
- Date: Mon, 10 Sep 2007 14:15:37 -0700
I am trying to use ADODB to return a recordset from a DB2 stored
procedure on AS400. All the procedure does is return a cursor for
SELECT * FROM. I have tried both the "IBMDA400" and "Client Access
ODBC" drivers. The first returns an empty recordset (incorrect), while
the second returns the expected number of records. Unfortunately,
attempting to read the field values produces the error "multiple-step
operation generated errors" at the first adDBDate field. The contents
of the remaining fields after this point are garbled. However, I am
still able to read the other information for all fields (name, size
etc).
Note that if I use the ADODB.Command to do the SELECT * FROM directly
(adCmdText), the resulting recordset works perfectly under both
drivers!
Is there any problem with interpreting recordsets obtained directly
from AS400/DB2 stored procedures, or specifically the adDBDate data
type? Thanks.
.
- Follow-Ups:
- Re: Error reading recordset from DB2/AS400
- From: Stephen Howe
- Re: Error reading recordset from DB2/AS400
- Prev by Date: Re: Getting Values from field in a DataRepeater-Control
- Next by Date: Re: Error reading recordset from DB2/AS400
- Previous by thread: Getting Values from field in a DataRepeater-Control
- Next by thread: Re: Error reading recordset from DB2/AS400
- Index(es):
Relevant Pages
|
|