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 StoredProcedure 1 $myid
execute StoredProcedure 2 $myid
execute StoredProcedure 3 $myid
execute StoredProcedure 4 $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
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 StoredProcedure 1 $myid
execute StoredProcedure 2 $myid
execute StoredProcedure 3 $myid
execute StoredProcedure 4 $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
Comment