I have a stored procedure that returns rows:
CREATE PROCEDURE MyProc
AS
BEGIN
SELECT FROM MyTable
END
My actual procedure is a little more complicated, which is why a stored procedure is necessary.
Is it possible to select the output by calling this procedure?
Something like:
SELECT FROM (EXEC MyProc) AS TEMP