How can I get the return value by stored procedure?
How can i get the return value by stored procedure??????????
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.
Rodrigo BeretaPosted Apr 9, 2013, 1:18 PM
Regards,
Bereta
Jignesh TrivediPosted Apr 9, 2013, 12:35 PM
Please refer
http://msdn.microsoft.com/en-us/library/37hwc7kt%28v=vs.80%29.aspx
http://geekswithblogs.net/bullpit/archive/2009/01/02/how-to-get-a-return-value-from-a-stored-procedure.aspx
hope this will help you.
Satyapriya NayakPosted Apr 9, 2013, 6:45 AM
Suthish NairPosted Apr 9, 2013, 6:45 AM
@OUTVALUE INT OUTPUT
AS
SELECT COUNT(1) INTO Table1
END
DECLARE @OUTTest int
EXEC PROC1 @OUTVALUE=@OUTTest OUTPUT