[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Makes the connection to the server
Source position: db.pas line 1973
public procedure TCustomConnection.Open; |
Open establishes the connection with the server if it was not yet connected. Calling this method first triggers the BeforeConnect event. If an exception is raised during the execution of that event handler, the connect process is aborted. If LoginPrompt is True, the OnLogin event handler is called. Only after this event, the connection is actually established. After the connection was established, the AfterConnect event is triggered.
Calling the Open method is equivalent to setting the Connected property to True.
If an exception is raised during the BeforeConnect or OnLogin handlers, the connection is not actually established.
|
Event triggered before a connection is made. |
|
|
Should the OnLogin be triggered |
|
|
Event triggered when a login prompt is shown. |
|
|
Event triggered after a connection is made. |
|
|
Is the connection established or not |