FireDAC.Phys.ADS.TFDADSRestore
Delphi
TFDADSRestore = class(TFDADSBackupRestore)
C++
class PASCALIMPLEMENTATION TFDADSRestore : public TFDADSBackupRestore
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | FireDAC.Phys.ADS.pas FireDAC.Phys.ADS.hpp |
FireDAC.Phys.ADS | FireDAC.Phys.ADS |
Description
The class implementing the Advantage service restoring a database from a backup.
Use the TFDADSRestore component to add a restoring database from backup capability to an application. This is a programmatic method to invoke the adsbackup tool.
To restore a database from a DB backup, an application should do the following:
- Specify DriverLink, UserName. Password, Database.
- Specify SourcePath - the path to the backup files.
- Specify DestinationPath - the path to restore a database.
- Call the Restore method.
Other properties and methods are optional.
The SourcePath is relative to the server because the TFDADSRestore restores the backup on the DB server host. The restoration can be performed using a free connection or a dictionary connection. You must be logged in as the ADSSYS user or a user in the DB:Backup group.