How can I achieve something like this :
SELECT * DISTINCT FROM
(execute dbo.MyStoredProcedure(@ID1,@ID2))
suppose that's inside another stored procedure.
How can I call a stored procedure from another stored procedure and get the result as a table (my select is intended for that)