• sjimmo (12/29/2010)


    WayneS

    On my system, the last select starts with 328417.

    Sorry Wayne,

    On my system I get:

    SELECT TOP (5) * FROM #Test WHERE RowID > 5000; - 5001

    SELECT TOP (5) * FROM #Test WHERE RowID > 7000; - 7001

    SELECT TOP (5) * FROM #Test WHERE RowID > 9000; - 9001

    SELECT * FROM #Test; - 1

    And on the one I just tested it on (SQL 2008 Express Edition) I got 283633. Interestingly, second time I got 915585--seems the outcome is largely random!