Re: About NextRecordSet
- From: "Kevin Frevert" <kevin@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 26 May 2005 07:48:50 -0500
If you know what recordsets are going to be returned you could..
var
Table1 : _RecordSet;
Table2 : _RecordSet;
iDummy :Integer;
begin
Table1 := asp.NextRecordSet(iDummy);
{do something with Table1}
Table2 := asp.NextRecordSet(iDummy);
{do something with Table2}
end;
Good luck,
krf
"Tuðrul HELVACI" <king_of_delphi@xxxxxxxxxxx> wrote in message
news:429546bd@xxxxxxxxxxxxxxxxxxxxxxxxx
> Hi All,
>
> i am using SQL Server and Delphi 7 and i have a stored procedure that
> returns multiple resultsets.When i using TADOStoredProc's NextRecordset
> method my current recordset was changed. At the end of the
> NextRecordSet calls my TADOStoredProc object has point a last
> recordset.Is it possible to point first recorset again ? For example:
>
> my stored procedure looks like following;
>
> Create Procedure MyProc
> As
> Select * from Table_A --first recordset
> select * from Table_B --second recordset
> select * from Table_C --third recordset
>
> and code here..
>
> asp : TADOStoredProc;
>
> var
> iDummy : Integer;
> begin
> asp.NextRecordSet(iDummy); // my object has point second recordset now
> asp.NextRecordSet(iDummy); // my object has point third recordset now
>
> {
> What code must i write here to go back first recordset ???
> Is it possible ? I dont want to Close/Open again.
> }
> end;
>
> Sincerely
.
- Follow-Ups:
- Re: About NextRecordSet
- From: Tuğrul HELVACI
- Re: About NextRecordSet
- References:
- About NextRecordSet
- From: Tuðrul HELVACI
- About NextRecordSet
- Prev by Date: Re: Finding a record in a TADOTable
- Next by Date: Re: D2005 ADO problem: multiple-step OLE DB operation generated errors
- Previous by thread: About NextRecordSet
- Next by thread: Re: About NextRecordSet
- Index(es):
Relevant Pages
|