How to put contents of another strored proc. into a cursor or a table?

  • Hi all!

    I'm building a stored proc. that returns a table of data into another stored proc. in that receiving sp, I would like to put the returned data into a cursor, because I need to go through the contents in it. How is this possible? I can't put content returned by an execute statement into a table or a cursor. What should I do?

    -- Arto Kainu

  • have you try with

    delete #temp

    insert into #temp

    exec sp_executesql @string

    and @String is the string with that result set

    ?

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

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