In addition to the usual events that occur for all database connection components, TADOConnection generates a number of additional events that occur during normal usage.
In addition to the BeforeConnect and AfterConnect events that are common to all database connection components, TADOConnection also generates an OnWillConnect and OnConnectComplete event when establishing a connection. These events occur after the BeforeConnect event.
In addition to the BeforeDisconnect and AfterDisconnect events common to all database connection components, TADOConnection also generates an OnDisconnect event after closing a connection. OnDisconnect occurs after the connection is closed but before any associated datasets are closed and before the AfterDisconnect event.
The ADO connection component provides a number of events for detecting when transaction-related processes have been completed. These events indicate when a transaction process initiated by a BeginTrans, CommitTrans, and RollbackTrans method has been successfully completed at the data store.
ADO connection components introduce two additional events you can use to respond to notifications from the underlying ADO connection object:
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!