About NextRecordSet



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
.



Relevant Pages

  • Re: using Command to set Parameters and Recordset to retrive the Query
    ... doesn't the rsData will be interpretate as an input parameter in the SP? ... >> Query and retrive the Recordset so I can use the Paging property ... > Even if this technique of using the parameters in the ORDER BY does work for> you, I suspect that this will defeat your objective of preventing sql> injection. ... See below for a more efficient solution> using a stored procedure. ...
    (microsoft.public.inetserver.asp.general)
  • Re: Not Getting results from Stored procedure
    ... So, running a stored procedure from VB6 can be done fairly easily and while there are fewer whitepapers on how to best do so, I thought my website might still have a few but there are not that many left--the problem is, Microsoft is pulling old unsupported content from MSDN so a lot of those links are gone. ... In any event, when calling a stored procedure, you need to include phrase SET NOCOUNT ON, so that the 'records affected' message that occur from results of Stored proc processing aren't returned to the calling application. ... These messages appear to be returned to the calling application as a recordset. ... when calling a stored proc you need ignore the command object and use a syntactically correct string as the source parameter for the recordset's 'Open' method. ...
    (microsoft.public.vb.database)
  • Re: vbscript logon script getting return data from sql sp
    ... Loop ... > One way to retrieve values from a stored procedure is with a Recordset ...
    (microsoft.public.scripting.vbscript)
  • Re: Missing Resultset When Calling an Stored Procedure w/a Nested
    ... we tried advancing to the next recordset by using the NextRecordSet ... program only returned the nested stored procedure call resultset and failed ...
    (microsoft.public.data.ado)
  • Re: Ado Recordset and stored procedure(SQL server 2000)
    ... I want to fill a recordset using a stored procedure. ... inner join track on images.box = track.box where releasetime between ...
    (microsoft.public.vb.database.ado)