I have a stored proc that returns more than one dataset. I would like to use the results of that sp in another sp. For instance:DECLARE @return_value int;EXEC @return_value = sp_helpdb 'master'-- @TemplateID = 1002;SELECT @return_value as N'@Return Value';
This returns two sets of data. I want to use the data found in the first set, in another SP. Is there a way to do this without using CLR or insert-exec? I am running SQL Server 2008R2.Pseudo-Code Sample:SELECT name, db_size from EXEC(sp_helpdb 'master')[0]
FischMan