Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Suthish NairRank #92 · 22.8K reputationPosted Apr 9, 2013, 2:45 AM EDT
@OUTVALUE INT OUTPUT
AS
SELECT COUNT(1) INTO Table1
END
DECLARE @OUTTest int
EXEC PROC1 @OUTVALUE=@OUTTest OUTPUT
Satyapriya NayakRank #47 · 31.5K reputationPosted Apr 9, 2013, 2:45 AM EDT
Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 9, 2013, 8:35 AM EDT
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.
Rodrigo Bereta40 reputationPosted Apr 9, 2013, 9:18 AM EDT
Regards,
Bereta