Let\'s say we have a stored procedure selecting something from a table:
CREATE PROCEDURE database.getExamples() SELECT * FROM examples;
How can I use
In SQL server you can then do SELECT * FROM database.getExamples()
SELECT * FROM database.getExamples()
If you want to re-use the 'procedure' then, yes, I would put it into a table valued function.
Otherwise you could just SELECT INTO a #temporary table inside the stored procedure.