Mine SP : -
In this SP,for consideration I just use the simple Table STudent whose columns are Roll & Marks.Code:CREATE PROCEDURE [dbo].[GetMarks] @iRoll int, @iMarks int OUTPUT AS BEGIN Select @iMarks = marks from student where roll = @iRoll END GO
Through SP, I want to get the Marks as OutPut Parameter by Passing ROll as Input Parameter. My SP is succeed successfully.
I just want to know how to Execute it & see the Result of SP in SQL .
To Execute I use the following commands : -
When I execute the above statement I get the message Command(s) completed successfully.But I am not able to see the Mark of Roll Number 1. How to get that?? Kindly Help ME!!!!Code:Declare @temp_Marks Int EXEC GetMarks 1 , @iMarks = @temp_Marks




Reply With Quote