declare @p6 int
set @p6=0
exec sp_executesql N'EXEC @RETURN_VALUE = [dbo].[KBA_GetSubScribeTree] @CTLevelID = @p0, @level = @p1, @UserLevel = @p2',N'@p0 nvarchar(3),@p1 nvarchar(1),@p2 int,@RETURN_VALUE int output',@p0=N'429',@p1=N'3',@p2=2,@RETURN_VALUE=@p6 output
select @p6
红色的标记为sql语句里的参数可以外传出来