Is the exact matching of row sorting guaranteed when inserting from an already sorted table? Are two selects guaranteed to return the same order?
declare @OUTPUT table ( [row1] int, [row2] varchar(255), [row3] int ) INSERT INTO @OUTPUT SELECT TOP 1000 [row1] ,[row2] ,[row3] FROM table ORDER BY [row1] select * from @OUTPUT select * from @OUTPUT