July 12, 2011 at 2:08 am
Hi There
Does anyone knows about a way to store results from stored porcedure that returns multiple result sets.
Sample stored porcedure:
CREATE PROCEDURE testing
AS
SELECT 1 a,2 b;
SELECT 3 a, 4 b, 5 c;
GO
Is is possible in TSQL to store this in multiple temp tables etc ?
July 12, 2011 at 3:29 am
You could create two temp tables in the outer procedure (assuming there is one) and then insert the results into those tables in your testing sproc.
July 12, 2011 at 3:36 am
I don't know of a way to do it in T-SQL without modifying the definition of the procedure, but I think you can do it in SSIS with an ADO result set.
John
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply