Re: rs.NextRecordset
- From: Chris Cheney <cjc1@nospam%ucs.cam.ac.uk%no%spam%please>
- Date: 30 Sep 2005 13:34:08 GMT
"Chad" <chad.dokmanovich@xxxxxxxxxx> wrote in
news:dhjbts$3n4$1@xxxxxxxxxxxxxxxxxxx:
> I am trying to use ADODB 2.7 to call a SQL Sever Stored procedure that
> returns multiple recordsets.
>
> I am aware of the rs.NextRecordset method to get the next recordset in
> the colelction, but my problem is that the recordset is CLOSED when it
> is returned.
> WHY!!!???
>
> I found this documentation but it doesn't explain why this happens. If
> it is closed, how do I iterate thru the records in the rs?
>
> Set recordsetobject = recordsetobject.NextRecordset (RecordsAffected)
>
> The NextRecordset method is called when you want to clear the current
> Recordset and return the next Recordset.
>
> The next Recordset object can be returned as:
> a.. a closed recordset with records,
> b.. a closed non-row returning recordset containing no records,
> c.. or an empty recordset with both BOF and EOF equal to True.
I do not believe what you have written is correct. For example, you would
get
RecordsAffected <> 0 with a closed recordset
from an UPDATE query - the records are updated but none are returned as a
recordset.
HTH
.
- References:
- rs.NextRecordset
- From: Chad
- rs.NextRecordset
- Prev by Date: rs.NextRecordset
- Next by Date: Re: ADO connection question
- Previous by thread: rs.NextRecordset
- Index(es):
Relevant Pages
|
|