From: Plamen Ratchev on
You can use the OUTPUT clause:

INSERT INTO @test
OUTPUT Inserted.machine, Inserted.plan_date, Inserted.plan_hrs
SELECT machine, DATEADD(dd, @days, '20100101'), 16
FROM @machines;

--
Plamen Ratchev
http://www.SQLStudio.com