Author: Tomas Rutkauskas
Connect to server databases (InterBase) without the login dialog
Answer:
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:
1 Database1.LoginPrompt := false;
2 with Database1.Params do3 begin4 Clear;
5 // the parameters SYSDBA & masterkey should be6 // retrieved somewhat different :-)7 Add('USER NAME=SYSDBA');
8 Add('PASSWORD=masterkey);
9 end;
10 Database1.Connected := tr