I have a temp table in a SP. I insert some values into it. I will need to then EXEC a second SP by sending in the values from the temp table. I would rather avoid having to use local variables.
DECLARE @tmp TABLE
(
Name VARCHAR(200).
Code INT
)
INSERT INTO @tmp
SELECT 'TEST', 100
EXEC MyProc
@Name = --Here I send the values from temp
@Code =