| title | getQueryTimeout Method (SQLServerStatement) | Microsoft Docs | |
|---|---|---|
| ms.custom | ||
| ms.date | 01/19/2017 | |
| ms.prod | sql-non-specified | |
| ms.reviewer | ||
| ms.suite | ||
| ms.technology |
|
|
| ms.tgt_pltfrm | ||
| ms.topic | article | |
| apiname |
|
|
| apilocation |
|
|
| apitype | Assembly | |
| ms.assetid | 8dff954f-b458-4fa6-abe6-be62ff75e2b9 | |
| caps.latest.revision | 11 | |
| author | MightyPen | |
| ms.author | genemi | |
| manager | jhubbard |
[!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.