I’m trying to call 3 other stored procedures within a “master” stored procedure and then return the combined results for all 4 stored procedures.
Is this possible?
And if so, I would appreciate some example sql code. The only way I could see this working is if the “master” stored procedure could somehow store the 3 partial result sets it obtains from the other stored procedures in variables. I’d appreciate the help on this!
Assuming you don’t need to join the output of the child procedures together, and that the child procedures return resultsets using
SELECTstatements, this should just work without you needing to do any additional storing of result sets.Basic example: