create proc sp_name(@p1 int,@p2 int OUTPUT)
AS
if @p1=1
set @p2=1
else
set @p2=0
return @p2
AS
if @p1=1
set @p2=1
else
set @p2=0
return @p2
declare @p1 int,@p2 int
set @p1=1
exec sp_name @p1,@p2 output
select @p2
set @p1=1
exec sp_name @p1,@p2 output
select @p2