cancel
Showing results for 
Search instead for 
Did you mean: 

Stored Procedure returns number of sets. How to handle them?

Former Member
0 Kudos

Hi, i have stored procedure which returns number of sets ( i have 3 SELECT's in it)

How can using the following code (#C)

can retrieve all 3 result sets.?

oCommand = oRecordSet.Command;

oCommand.Name="myProcedure";

oCommand.Parameters.Item(1).Value=oBpId;

oCommand.Parameters.Item(2).Value=i;

oCommand.Execute();

while (oRecordSet.EoF==false)

{

<b>>>> Here I need to retrieve not the first one but all the sets</b>

oRecordSet.MoveNext();

}

thanks to everyone.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Oleksiy.

Put in your stored procedure sentences like

<i>set vble1 = Your first SQL Stament

set vble2 = Your first SQL Stament

set vble3 = Your first SQL Stament</i>

At the end just do <i>Select vbl1, vble2, vbl3</i> and in your source code <i>orecordset.fields("vble1").value</i> ....

Try it

Regards

Jai