RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSQLConnection.OnLogin Event

Occurs after the BeforeConnect event and before a connection is established.

Pascal
property OnLogin: TSQLConnectionLoginEvent;
C++
__property TSQLConnectionLoginEvent OnLogin;

Use the OnLogin event to assign values to the User_Name, Password, and Database parameters immediately before TSQLConnection attempts to connect to the database server. OnLogin only occurs if the LoginPrompt property is true. If LoginPrompt is true but there is no OnLogin event handler, a default login dialog appears in which the user can enter a user name and password. The connection fails if correct values for the user name and password are not supplied in the dialog or by the OnLogin event handler. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!