Dynamic Stored Procedure with output
How to make Dynamic Stored Procedure with output variable?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shubham KumarPosted Feb 3, 2016, 4:56 AM
SET @Sql='SELECT @Id=Id FROM tablname'
EXECUTE sp_executesql @Sql, N'@Id varchar(50) OUTPUT', @id=@Id OUTPUT