In my original post I made the comment that I wasn't sure if paging was what
they were after or not. My interpretation of the question being asked might
be different than yours or someone elses.
I also didn't say that you absolutely couldn't build a paging solution with
TOP, I said doing a simple TOP 200 won't allow paging. TOP for paging would
be one of the more expensive ways of doing paging in SQL Server. The cost
to sort for TOP for paging can easily be more than using a CTE or a Table
Variable with an identity RowID column to control the paging sets.
--
Jonathan Kehayias
SQL Server MVP
http://jmkehayias.blogspot.com
http://www.sqlclr.net
"Plamen Ratchev" <Plamen DeleteThis @SQLStudio.com> wrote in message
news:8ZOdnYTnfO2DjKvUnZ2dnUVZ_qfinZ2d@speakeasy.net...
> The question was how to extract 200 rows per user request, it did not
> mention paging at all. You could build a paging solution using TOP.
>
> --
> Plamen Ratchev
> http://www.SQLStudio.com >> Stay informed about: Security Question