| title | getMaxRows Method (SQLServerStatement) |
|---|---|
| description | getMaxRows Method (SQLServerStatement) |
| author | David-Engel |
| ms.author | davidengel |
| ms.date | 01/19/2017 |
| ms.service | sql |
| ms.subservice | connectivity |
| ms.topic | reference |
| apilocation | sqljdbc.jar |
| apiname | SQLServerStatement.getMaxRows |
| apitype | Assembly |
[!INCLUDEDriver_JDBC_Download]
Retrieves the maximum number of rows that a SQLServerResultSet object that is produced by this SQLServerStatement object can contain.
public final int getMaxRows()
An int that indicates the maximum number of rows, or 0 if there is no limit.
This getMaxRows method is specified by the getMaxRows method in the java.sql.Statement interface.
This getMaxRows method always returns 0 for dynamic scrollable cursors.