Zum Hauptinhalt springen

ReconnectDB

Structure

ReconnectDB(bShowMessage, bIgnoreConnectionLoss)

Type

Procedure

Description

This procedure forces a disconnection then immediate reconnection to the IndySoft database. Calling this procedure is helpful if you have trapped a previous exception and you suspect a database time out on a long running operation, etc. This will create a fresh connection so you can attempt a re-execution.

Parameters

| Parameter | Type | Description | | bShowMessage | Boolean | If set to '1' then upon successful reconnection a message dialog is shown noting that connection has been restored | | bIgnoreConnectionLoss | Boolean | If set to '1' then upon unsuccessful reconnection the current exe is left running (even without a database connection). If '0' then a message is shown to user ('Connection was lost at %s - please log back in...') and the application is terminated. |