Icon Restore Method

function Restore(const BackupName: String; BackupTables:
      TStrings): Boolean

Usage

Call the Restore method to restore all tables specified by the BackupTables parameter from the backup file specified by the BackupName parameter.

The Restore method cannot be run when a transaction is currently active for the database. You can inspect the InTransaction property to determine if a transaction is currently active for the database. When the restore executes, it obtains a write lock for the entire database that prevents any sessions from performing any operation on any of the tables in the database until the restore completes.

Information The BackupName parameter can contain a full path and file name, however when calling this method from within a remote session for a remote database you must make sure that the path is relative to the database server, not the client workstation.
Image