declare @a as INTdeclare @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