EntityDAC

TEntityConnection.Connect Method

Initiates a connection to the specified database using the specified connection parameters.

Class

TEntityConnection

Syntax

procedure Connect(const AProviderName: string; const ADialectName: string; const AConnectionString: string); overload;

Parameters
AProviderName
Specifies the current data provider.
ADialectName
Specifies the current SQL dialect.
AConnectionString
Specifies the connection parameters.

Remarks

Call Connect to initiate a connection to the database.

Calling Connect generates a TEntityConnection.BeforeConnect event, establishes the connection, sets the TEntityConnection.Connected property to True, and generates an TEntityConnection.AfterConnect event. In addition, when calling Connect TEntityConnection may display a login dialog, depending on the value of TEntityConnection.LoginPrompt.

See Also

© 1997-2017 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback