![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » DBISAM Technical Support » Product Manuals » DBISAM Version 4 Manual for RAD Studio XE4 (C++ Win64) » Using DBISAM » Backing Up and Restoring Databases |
The local database has the following tables: Table Name ------------------------------------- Customers Orders Items
{ TStringList *TablesToBackup=new TStringList; try { MyDatabase->DatabaseName="MyDatabase"; MyDatabase->Directory="d:\\temp"; TablesToBackup->Add("Customers"); TablesToBackup->Add("Orders"); TablesToBackup->Add("Items"); if (MyDatabase->Backup("d:\\temp\\"+ StringReplace(DateToStr(Date), "/","",[rfReplaceAll])+".bkp", "Daily Backup for "+DateToStr(Date),6, TablesToBackup) { ShowMessage("Backup was successful"); } else { ShowMessage("Backup failed"); } } __finally { delete TablesToBackup; } }
The local database has the following tables: Table Name ------------------------------------- Customers Orders Items
{ TStringList *TablesToRestore=new TStringList; try { MyDatabase->DatabaseName="MyDatabase"; MyDatabase->Directory="d:\\temp"; TablesToRestore->Add("Customers"); if (MyDatabase->Restore("d:\\temp\\"+ StringReplace(DateToStr(Date), "/","",[rfReplaceAll])+".bkp", TablesToRestore) { ShowMessage("Restore was successful"); } else { ShowMessage("Restore failed"); } } __finally { delete TablesToRestore; } }
This web page was last updated on Thursday, November 16, 2023 at 10:39 AM | Privacy Policy![]() © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |