You can use rowcount :
SET rowcount 500
SET ROWCOUNT overrides the TOP SELECT keyword if rowcount is a lower value.
SET ROWCOUNT is ignored in the INSERT, UPDATE, and DELETE statements when the explicit expression TOP is used in the same expression. This includes instructions in which an INSERT is followed by a SELECT clause.
SET ROWCOUNT is set at the time of execution or start, and not at the time of parsing.
To disable this option so that all rows are returned, specify SET ROWCOUNT 0 .
For more information, check here !
source share