You are not logged in.
Pages: 1
I'm having trouble with TSQLDataBase.Backup(const BackupFileName: TFileName). When run from within a service call it gives an ESQLLite3Exception with message 'cannot VACUUM - SQL statements in progress'.
It works ok if I call backup directly from the server.
Any suggestions on what's going wrong?
Thanks
type
TServiceServer = class(TSQLRestServerDB)
published
function doBackup(var aParams: TSQLRestServerCallBackParams): Integer;
end;
var
database: TServiceServer
implementation
function TServiceServer.doBackup(var aParams: TSQLRestServerCallBackParams): Integer;
begin
Database.DB.Backup('c:\data\backup.db3'); //FAILS
end;
function bk;
begin
Database.DB.Backup('c:\data\backup.db3'); //WORKS OK
end;
Offline
Thanks, got it working now.
Offline
Pages: 1