• if you know the shape of the data being output from the procedure, you can insert it directly into a table;

    for example, if your proc returns a single column table of CREATE LOGIn statments:

    CREATE TABLE #Results(ResultsID int identity(1,1) NOT NULL Primary Key, ResultsText varchar(2000) )

    INSERT INTO Results(ResultsText )

    EXECUTE MyProcedure @parameter = 42

    will that help?

    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!