Skip to content

Latest commit

 

History

History
54 lines (43 loc) · 1.53 KB

File metadata and controls

54 lines (43 loc) · 1.53 KB
title setQueryTimeout 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.setQueryTimeout
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid 0c513265-cd0c-4b38-9494-94458c17a16d
caps.latest.revision 8
author MightyPen
ms.author genemi
manager jhubbard
ms.workload Inactive

setQueryTimeout Method (SQLServerStatement)

[!INCLUDEDriver_JDBC_Download]

Sets the number of seconds the driver will wait for a SQLServerStatement object to run to the given number of seconds.

Syntax

  
public final void setQueryTimeout(int seconds)  

Parameters

seconds

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

Exceptions

SQLServerException

Remarks

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

See Also

SQLServerStatement Members
SQLServerStatement Class