Is there a way to retrieve all the keys of the newly inserted records when using an INSERT INTO ... SELECT FROM query?
Use the OUTPUT clause to capture them (SQL Server 2005 and up).