FireDAC.Phys.IBBase.TFDIBValidate
Delphi
TFDIBValidate = class(TFDIBService)
C++
class PASCALIMPLEMENTATION TFDIBValidate : 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 validate and repair service.
Use the TFDIBValidate component to add a database validate and repair 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 validate and/or repair a database, an application should:
- Specify Database - a database file to validate.
- Call the Analyze, CheckOnly, Repair or Sweep method.
To produce a DB validate or repair log, an application should use the OnProgress event.
Example
FDIBValidate1.DriverLink := FDPhysIBDriverLink1;
FDIBValidate1.UserName := 'sysdba';
FDIBValidate1.Password := 'masterkey';
FDIBValidate1.Host := 'db.srv.host';
FDIBValidate1.Protocol := ipTCPIP;
FDIBValidate1.Database := 'e:\ib\addemo.gdb';
FDIBValidate1.Repair;