I am writing a stored proc (proc1) that will need info from several tables. It just happens that this info is generated in an already existing stored proc (proc2). I tried using
but recieved the error:
An INSERT EXEC statement cannot be nested.
How can I get this data from proc2 so I can use it in proc1?
Code:
INSERT INTO #temp_table
EXEC proc2
An INSERT EXEC statement cannot be nested.
How can I get this data from proc2 so I can use it in proc1?