Hello ALL, I changed my SP as follows : -
Called in the SP in the following way : -Code:Create PROCEDURE [GetMarks] @iRoll int, @iMarks int OUTPUT , @sName varchar(10) OUTPUT AS BEGIN (select marks from student where roll = @iRoll) END
It Worked for me.Code:Declare @temp_Marks Int EXEC GetMarks 2 , @iMarks = @temp_Marks
In the original SP, I just Changed the statement (BOLD) & all worked




Reply With Quote