What am I doing wrong here? My use of the INTO clause seems to match the example I found in Microsoft's Transact-SQL reference pages, but I must be missing something.
DECLARE @rowtemp table(TestRunID int, RunOrder int)
SELECT TestRunID, ROW_NUMBER() OVER (ORDER BY TestRuns.TestTime ASC)
AS 'RunOrder' INTO @rowtemp FROM TestRuns WHERE RunID = @runID