Alter procedure S_Comp(@str1 varchar(20),@r varchar(100) out) as declare @str2 varchar(100) set @str2 =\'welcome to sql server. Sql server is a product of Microsoft\'
change your
return @str1+'present in the string' ;
to
set @r = @str1+'present in the string'