Partager via


setQueryTimeout Method (SQLServerStatement)

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

public final void setQueryTimeout(int seconds)

Paramètres

seconds

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

Exceptions

SQLServerException

Remarques

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

Voir aussi

Référence

SQLServerStatement Class

Concepts

SQLServerStatement Methods
SQLServerStatement Members