Sets the limit for the maximum number of rows that any SQLServerResultSet object can contain to the given number.
public final void setMaxRows(int max)
Parameters
max
An integer that indicates the maximum number of rows, or 0 if there is no limit.
Exceptions
Remarks
This setMaxRows method is specified by the setMaxRows method in the java.sql.Statement interface.