Condividi tramite


isValid Method (SQLServerConnection)

Indicates whether this SQLServerConnection object has not been closed and is still valid.

Nota

This feature is introduced starting with the Microsoft SQL Server JDBC Driver version 2.0.

public boolean isValid(int timeout)

Parametri

timeout

An int that specifies the number of seconds to wait for validating the connection.

Valore restituito

true if the connection is valid; false if the connection is not valid or the validity of the connection cannot be determined before the timeout expires.

Eccezioni

SQLServerException

Osservazioni

This isValid method is specified by the isValid method in the java.sql.Connection interface.

Vedere anche

Riferimento

SQLServerConnection Class

Concetti

SQLServerConnection Methods
SQLServerConnection Members