I need to create a static "copy" of values from one table and store them in another.
The best way I know how to do this is to get the values from the db to my application, loop through them and concatenate multiple INSERT statements, then execute the query.
Is there a way to do this without the round trip between application and database?
I was hoping something like this would work:
INSERT INTO dbo.StudentProject
VALUES (SELECT StudentID, ProjectID
FROM dbo.StudentProjectSimulation
WHERE SimulationID = 1)
but it doesn't.
(everything is an int so no worries there)