| title | getQueryTimeout Method (SQLServerStatement) |
|---|---|
| description | getQueryTimeout 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.getQueryTimeout |
| apitype | Assembly |
[!INCLUDEDriver_JDBC_Download]
Retrieves the number of seconds [!INCLUDEjdbcNoVersion] will wait for this SQLServerStatement object to run.
public final int getQueryTimeout()
An int that indicates the number of seconds that the JDBC driver will wait, or 0 if there is no limit.
This getQueryTimeout method is specified by the getQueryTimeout method in the java.sql.Statement interface.