How to create stored procedure with output parameter in sql server
169608-Mar-2016
We want to create stored procedure with output parameter in sql server. How to create and use please help me.
Updated on 08-Mar-2016
Home / DeveloperSection / Forums / How to create stored procedure with output parameter in sql server
Anonymous User
08-Mar-2016Input And Output parameter stored procedure
The following example shows a stored procedure with an input and an output parameter. The first parameter in the stored procedure @ProductId receives the input value specified by the calling program, and the second parameter @ProductName is used to return the value to the calling program. The SELECT statement uses the @ProductId parameter to obtain the correct ProductName value, and assigns the value to the @ProductName output parameter.