declare @a as INT
declare @b as INT
exec sp_executesql N'select @a=3,@b=4',N'@a int out,@b int out',@a OUTPUT ,@b OUTPUT
select @a, @b
declare @a as INT
declare @b as INT
exec sp_executesql N'select @a=3,@b=4',N'@a int out,@b int out',@a OUTPUT ,@b OUTPUT
select @a, @b