Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.31 KB

File metadata and controls

42 lines (31 loc) · 1.31 KB
title setQueryTimeout Method (SQLServerStatement)
description setQueryTimeout Method (SQLServerStatement)
author dlevy-msft-sql
ms.author dlevy
ms.reviewer davidengel, machavan, sunilbs
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic reference
apilocation sqljdbc.jar
apiname SQLServerStatement.setQueryTimeout
apitype Assembly

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