calling sp inside sp

  • I am calling different SPs inside a single sp, but i am having some problem when i am returning and getting id from sps

    here is my sp

    DECLARE @MemberID int

    DECLARE @GroupID int

    SET MemberID =EXEC dbo.spInsertMember @FBID,@FirstName,@LastName,@Email,@Mobile,@Nationality,@Country,@DOB,@Gender,@IsActive,@Modified,@Created

    SET @GroupID =EXEC dbo.spInsertGroup @Name,@GroupIsActive,@GroupModified,@GroupCreated

  • Use Output Parameter in your Stored Procedure.

    http://msdn.microsoft.com/en-us/library/ms378108.aspx

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply