I need a SP to return multiple sets of results. The second set of results would be based on a column of the first set of results.
So:
declare @myTabl
At the end of the Stored Proc, put:
SELECT * FROM @myTable1 SELECT * FROM @myTable2
This will return 2 result sets.