FireDAC.Phys.IBBase.TFDIBValidate

From RAD Studio API Documentation
Jump to: navigation, search

FireDAC.Phys.IBBase.TFDIBServiceFireDAC.Phys.TFDPhysDriverServiceFireDAC.Stan.Intf.TFDComponentSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTFDIBValidate

Delphi

TFDIBValidate = class(TFDIBService)

C++

class PASCALIMPLEMENTATION TFDIBValidate : public TFDIBService

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:

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;

See Also