• amalanto in that case you have to create a table which will capture the results inside the stored procedure; so you need to know the structure and datatypes returned;something like this:

    create procedure myproc

    as

    begin

    create table #tmp(tmpid int, columnlist.....)

    insert into #tmp(tmpid,columnlist.....)

    EXEC myotherProc

    --do more stuff to the contents of #tmp

    end

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!