共用方式為


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)

參數

seconds

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

例外狀況

SQLServerException

備註

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

另請參閱

參考

SQLServerStatement Class

概念

SQLServerStatement Methods
SQLServerStatement Members