Re: Error reading recordset from DB2/AS400
- From: "Ralph" <nt_consulting64@xxxxxxxxx>
- Date: Tue, 11 Sep 2007 10:57:26 -0500
"ShaggyMoose" <shaggymoose@xxxxxxxxx> wrote in message
news:1189524924.097769.245410@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Set adorecSet= _
adoConn.Execute("{Call libraryname.PR_TEST()}", ,adCmdText)
Thanks for you help. I tried the above, and it called the stored
procedure and returned a record set. However, there are two problems:
1. The cursor doesn't seem to know the record count (eg.
adoRecSet.RecordCount = -1).
2. I still get the same error message on the first adDBDate field when
the value is not NULL.
So, back where I started. Its very confusing to me that I am doing
basically the same thing via different methods, yet the result is
always different (well, broken in different ways).
Barrows is the man, but in case he doesn't get back here for a while, here
is something to chew on ...
1) A -1 for a RecordCount does mean the RecordCount is unknown. It isn't an
error. You can not receive a RecordCount for all cursors. But do you really
need one?
2) Dump the '*' for now and specifically request and return columns so you
can see what is happening. The error you are reporting is always related to
a confused query, taking it in smaller bits may help to isolate the exact
point of failure.
3) What are subsequent errors in the error collection, if any?
-ralph
.
- References:
- Error reading recordset from DB2/AS400
- From: ShaggyMoose
- Re: Error reading recordset from DB2/AS400
- From: Stephen Howe
- Re: Error reading recordset from DB2/AS400
- From: ShaggyMoose
- Re: Error reading recordset from DB2/AS400
- From: Bob Barrows [MVP]
- Re: Error reading recordset from DB2/AS400
- From: ShaggyMoose
- Error reading recordset from DB2/AS400
- Prev by Date: Re: Error reading recordset from DB2/AS400
- Next by Date: Re: Error reading recordset from DB2/AS400
- Previous by thread: Re: Error reading recordset from DB2/AS400
- Next by thread: Re: Error reading recordset from DB2/AS400
- Index(es):
Relevant Pages
|
|