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 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy