FireDAC.Phys.ADS.TFDADSUtility.Zap
Delphi
procedure Zap;
C++
void __fastcall Zap();
Contents
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FireDAC.Phys.ADS.pas FireDAC.Phys.ADS.hpp |
FireDAC.Phys.ADS | TFDADSUtility |
Description
Removes all the records from the table and re-indexes it.
Use the Zap method to remove all the records from the table and re-index it. The tables must not be used by any of the processes.
The Tables property specifies the list of tables to process. The TableType property specifies the type of the tables. The TablePassword property is optional and it specifies the table password.
Example
FDADSUtility1.DriverLink := FDPhysADSDriverLink1;
FDADSUtility1.Database := '\\DA\ADS_DB';
FDADSUtility1.Tables.Add('ORDERS');
FDADSUtility1.Tables.Add('ORDERS DETAILS');
FDADSUtility1.Zap;