Cheat:
SELECT TOP 11 * FROM MyTable
and check if there are 11 lines :-) Then ignore the eleventh line. Please note that from the comment you wrote, you might not understand: you are making this request instead of the TOP 10 request.
If there are <= 10 rows, then the entire result set would be returned TOP 10 . If there are 11 lines, then it is clear that TOP 10 would not be enough.
xanatos
source share