Get scalar value from SELECT statement in stored proc, from within a stored proc
问题 I know the preferred method for returning scalar values from stored procs is either using RETURN or an OUTPUT parameter. But lets say that I have a stored proc that returns the value using a select statement: CREATE PROC spReturnNumber AS SELECT 1 Is it possible to get this value from within another stored proc? CREATE PROC spCheckNumber AS EXEC spReturnNumber -- <-- get the return value here? Clarification: I need a solution that doesn't require using an OUTPUT parameter, or using RETURN to