rs.NextRecordset
- From: "Chad" <chad.dokmanovich@xxxxxxxxxx>
- Date: Fri, 30 Sep 2005 08:44:24 -0400
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 am calling the SP using a COmmand object like so:
Set Cmd.ActiveConnection = mobjConn
Cmd.CommandType = adCmdStoredProc
Cmd.CommandText = SP.Name
'Add params , if any
Set rs = Cmd.Execute()
Any help would be greatly appreciated.
Chad
.
- Follow-Ups:
- Re: rs.NextRecordset
- From: Chris Cheney
- Re: rs.NextRecordset
- Prev by Date: Re: Problems querying DB2 through ADO
- Next by Date: Re: rs.NextRecordset
- Previous by thread: Re: 0x80040e4d(DB_SEC_E_AUTH_FAILED) from ADOX::Catalog::Create
- Next by thread: Re: rs.NextRecordset
- Index(es):
Relevant Pages
|
|