I am giving few steps to achieve goal.
1. Create a stored procedure for addition two number
CREATE Procedure Proc_AdditionTwoNumber
(
@first int,
@second int
)
AS
Begin
declare @add int
SET @add= @first + @second
SELECT @add
end
2. Create another stored procedure that will call first one using
exec
statement
CREATE Procedure [dbo].[proc_AddTwoNumber]
(
@first int,
@second int
)
AS
exec Proc_AdditionTwoNumber @first,@second
3. call second stored procedure to get result
exec proc_AddTwoNumber 12,30