Proc calling Proc

  • I have a proc which is passing through a month and year parameter (based upon some table values) to another proc.

    The receiving proc ends in creating a final result set in a table variable. How do I return these figures in my calling proc?

    Thanks.

  • I would create table function instead of second procedure.

    But if you insist on having SP do this:

    INSERT INTO #Resultset (... columns list ...)

    EXEC dbo.ReportSP (@Month, @Year)

    _____________
    Code for TallyGenerator

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

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