DelphiFAQ Home Search:
General :: Programming :: Delphi :: Database
Database development with Delphi. Includes issues with BDE, ADO and InterBase.

Articles:

This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Only the 40 most recently viewed articles are shown.
You can see the full list here.

Featured Article

Connect to server databases (InterBase) without the login dialog

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;
     // the parameters SYSDBA & masterkey should be
     // retrieved somewhat different :-)
     Add ('USER NAME=SYSDBA');
     Add ('PASSWORD=masterkey);
   end;
   Database1.Connected := true;
 

Generated 12:01:09 on Jul 18, 2018