VerifyConnection Method

SQLServer Object

Description

Returns the state of a connection or a connection verification option.

Visual Basic

bStatus = SQLServer->VerifyConnection ( [[ReconnectIfDead :=]
tVerifyType] )

C++

HRESULT pSQLServer->VerifyConnection (
LPBOOL
pbStatus,
SQLOLE_VERIFYCONN_TYPE
tVerifyType = SQLOLEConn_ReconnectIfDead );

Elements

Element Type Description

bStatus Boolean Indicates the status of the tVerifyType value. If True, the connection is valid or the option is enabled. If False, the indicated connection is broken or the option is disabled.
tVerifyType SQLOLE_VERIFYCONN_TYPE Connection status or connection verification option.