Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

ConnectionState

  • Last UpdatedJul 22, 2024
  • 1 minute read

Use this read-only property to verify that the connection string specified by GetConnection successfully establishes the initial connection to the data source.

Note: You cannot use this property to determine the status of an actual physical connection to the data source. No polling mechanism is available to detect a broken connection.

If intermittent network failures occur, ConnectionState does not indicate the failure until a command or transaction is run. However, when a command is run, the ConnectionState property updates the current connection state.

The return type is an enumerated value of type aaDBConnectionState.

Syntax

aaDBConnectionState ConnectionState

Related Links