Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 1.55 KB

File metadata and controls

52 lines (42 loc) · 1.55 KB
title getQueryTimeout Method (SQLServerStatement) | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service drivers
ms.service
ms.component jdbc
ms.reviewer
ms.suite sql
ms.technology
drivers
ms.tgt_pltfrm
ms.topic article
apiname
SQLServerStatement.getQueryTimeout
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid 8dff954f-b458-4fa6-abe6-be62ff75e2b9
caps.latest.revision 11
author MightyPen
ms.author genemi
manager craigg
ms.workload Inactive

getQueryTimeout Method (SQLServerStatement)

[!INCLUDEDriver_JDBC_Download]

Retrieves the number of seconds [!INCLUDEjdbcNoVersion] will wait for this SQLServerStatement object to run.

Syntax

  
public final int getQueryTimeout()  

Return Value

An int that indicates the number of seconds that the JDBC driver will wait, or 0 if there is no limit.

Exceptions

SQLServerException

Remarks

This getQueryTimeout method is specified by the getQueryTimeout method in the java.sql.Statement interface.

See Also

SQLServerStatement Members
SQLServerStatement Class