Using EXEC in select stored procedure

  • Hi

    I need to execute an existing stored procedure (using EXEC) in another stored procedure before returning a recordset via a select statement -

     

    CREATE Procedure TEST AS

    BEGIN

       EXEC Proc 1

       SELECT Field FROM Table

    END

    I'm getting Error 3001 (Application-defined or object-defined error)

    Can I do this? (I can in Oracle)

     

    Thanks

    Mark.

  • hi

    u shud be able to do what u r trying, but r u trying to select data from a temp table created inside the inner procedure(proc 1) that u r trying to execute

     

    "Keep Trying"

    "Keep Trying"

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

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