Delphi .NET (2) Database (71) Delphi IDE (89) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280)
Exchange Links About this site Links to us 
|
Connect to server databases (InterBase) without the login dialog
This article has not been rated yet. After reading, feel free to leave comments and rate it.
To bypass the login dialog when connecting to a server database, use the property LoginPrompt.
You will have to provide the username & password at runtime, but you also can set that up at design time in the object inspector, property Params.
This short source code shows how to do it:
 | |  | |
Database1.LoginPrompt := false;
with Database1.Params do
begin
Clear;
Add ('USER NAME=SYSDBA');
Add ('PASSWORD=masterkey);
end;
Database1.Connected := true;
| |  | |  |
Comments:
|