4>5> DECLARE @sql AS NVARCHAR(12), @i AS INT6>7> SET @sql = N'SET @p = 10;';8>9> EXEC sp_executesql10> @stmt = @sql,11> @params = N'@p AS INT OUTPUT',12> @p = @i OUTPUT;13>14> SELECT @i;15> GO----------- 10