I have a Stored Procedure that rolls-back a series of operations. I want to call this from within another SP.
The problem is that the inner SP returns a record set with
Here's a variation which will work well if you need to use this for MULTIPLE recordsets.
CREATE TABLE #outsidetable (...) exec spInsideProcedure SELECT * FROM #outsidetable
inside spInsideProcedure
INSERT INTO #outsidetable SELECT