Para ejecutar la instrucción Empty sobre una tabla tienes que tener uso exclusivo.
Código Delphi
[-] Try
DmTerm.LinCabHistor.Close;
SetAutoInc('C:\xxxx\Tmp\TempLinHistor.db',0);
DmTerm.LinCabHistor.Exclusive:=True;
DmTerm.LinCabHistor.Active:=True;
DmTerm.LinCabHistor.EmptyTable;
Except
nError:=nError +1;
ShowMessage('Se ha producido un error en vaciado del fichero Lineas histórico temporal.');
end;
Un Saludo.