FireDAC.Phys.IBBase.TFDIBConfig
Delphi
TFDIBConfig = class (TFDIBService)
C++
class PASCALIMPLEMENTATION TFDIBConfig : public TFDIBService
Contents
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | FireDAC.Phys.IBBase.pas FireDAC.Phys.IBBase.hpp |
FireDAC.Phys.IBBase | FireDAC.Phys.IBBase |
Description
The class implementing Firebird and InterBase database properties setting service.
Use the TFDIBConfig component to add a database properties setting capability to an application. This is a programmatic method to invoke the gfix tool as a thread in the DB server process.
To configure the connection to the database server, you must fill the following properties: DriverLink, Host, Protocol, UserName and Password.
To set a database property, an application should:
- Specify Database - a database file to setup.
- Call one of the SetXxx or ShutdownDB, OnlineDB, ActivateShadow methods.
Example
FDIBConfig1.DriverLink := FDPhysIBDriverLink1;
FDIBConfig1.UserName := 'sysdba';
FDIBConfig1.Password := 'masterkey';
FDIBConfig1.Host := 'db.srv.host';
FDIBConfig1.Protocol := ipTCPIP;
FDIBConfig1.Database := 'e:\ib\addemo.gdb';
FDIBConfig1.ShutdownDB(smForce, 5);