Results 1 to 12 of 12

Thread: [RESOLVED] Execution of SP in SQL Server 2008

Threaded View

  1. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2008
    Posts
    474

    Re: Execution of SP in SQL Server 2008

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width