I have two Stored Procedures which receives multiple parameters.
usp_stored_proc1 which returns a uniqueidentifier at the end of the stored procedure: SELECT column1
usp_stored_proc2 which should get the column1 as a parameter from the usp_stored_proc1
Here is my code:
EXEC usp_stored_proc1 'Test1', 'Para1', 'Para2'
EXEC usp_stored_proc2 SELECT column1, 'Para3', 'Para4'
and here is my attempt to pass the usp_stored_proc1 as a parameter:
EXEC usp_stored_proc2 usp_stored_proc1, 'Test1', 'Para1', 'Para2', 'Para3', 'Para4'
but failed.
OUTPUTparameter.SELECTdoesn't return anything.