Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.27 KB

setquerytimeout-method-sqlserverstatement.md

File metadata and controls

41 lines (30 loc) · 1.27 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic apilocation apiname apitype
setQueryTimeout Method (SQLServerStatement)
setQueryTimeout Method (SQLServerStatement)
David-Engel
davidengel
01/19/2017
sql
connectivity
reference
sqljdbc.jar
SQLServerStatement.setQueryTimeout
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