Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.4 KB

File metadata and controls

44 lines (32 loc) · 1.4 KB
title isValid Method (SQLServerConnection) | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service connectivity
ms.reviewer
ms.technology connectivity
ms.topic conceptual
ms.assetid 3b0a8bbf-9369-4456-9ab8-1434ccacdd7e
author David-Engel
ms.author v-daenge

isValid Method (SQLServerConnection)

[!INCLUDEDriver_JDBC_Download]

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

Syntax

  
public boolean isValid(int timeout)  

Parameters

timeout

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

Return Value

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.

Exceptions

SQLServerException

Remarks

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

See Also

SQLServerConnection Members
SQLServerConnection Class