FireDAC.Phys.ASA.TFDASAValidate
Delphi
TFDASAValidate = class (TFDASAService)
C++
class PASCALIMPLEMENTATION TFDASAValidate : public TFDASAService
Contents
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | FireDAC.Phys.ASA.pas FireDAC.Phys.ASA.hpp |
FireDAC.Phys.ASA | FireDAC.Phys.ASA |
Description
The class implementing the SQL Anywhere database validation service.
Use the TFDASAValidate component to add a database validation capability to an application. This is a programmatic method to invoke the dbvalid tool as a thread in the DB server process.
To validate or repair a database, an application should do the following:
- Specify DriverLink.
- Specify ConnectParams.
- Call the Validate method.
To produce a DB validation log, an application should use the OnProgress event.
Example
FDASAValidate1.DriverLink := FDPhysASADriverLink1;
FDASAValidate1.ConnectParams := 'ENG=addemo_asa11;DBN=addemo_asa11;UID=DBA;PWD=sql';
FDASAValidate1.ValidateType := vtNormal;
FDASAValidate1.Flags := [];
FDASAValidate1.OnProgress := FDASABackup1Progress;
FDASAValidate1.Validate;