|
Posted by Winbug on 11/21/07 19:49
hi
I have a scenario where I have created a stored procedure wich task is
to search in my database with certain criterias. For each record from
this search, I want to run a couple of other stored procedure.
Here is some code:
decare $myid nvarchar(15)
select id, desc, customer from project where customer = 'cust1'
------------------------------------------
--HERE IS CODE MISSING--
------------------------------------------
--for each of the records returned, I want to run 4 stored procedures
with the id as parameter.
begin
execute StoredProcedure1 $myid
execute StoredProcedure2 $myid
execute StoredProcedure3 $myid
execute StoredProcedure4 $myid
end
The problem is I don't know how to get hold of the result set and loop
through. Maybe you can help me.
regards
Roger
Navigation:
[Reply to this message]
|