to get the resultset of sub sp and use it in main sp's

  • Hi.

    I want to get the result set of a sub sp's

    eg

    create proc test

    as

    begin

    select * from authors

    end

    exec test

    if i execute the above statement i will get the result set.

    in main sp i want to to get those resultset and to some calculation.

    can any one explain how can we do it.

  • hi,

    why u need more sp, one sp is enough......:P

    you can simple use this..

    insert into #temp

    exec test

    Cheers!

    Sandy.

    --

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

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