共用方式為


getQueryTimeout Method (SQLServerStatement)

Retrieves the number of seconds Microsoft SQL Server 2005 JDBC Driver will wait for this SQLServerStatement object to run.

public final int getQueryTimeout()

傳回值

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

例外狀況

SQLServerException

備註

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

另請參閱

參考

SQLServerStatement Class

概念

SQLServerStatement Methods
SQLServerStatement Members