AnyDAC
ContentsIndexHome
PreviousUpNext
TADADSUtility Class

The class implementing Advantage table utilities.

Group
Class Hierarchy
uADPhysADS_TADADSUtilityuADPhysADS_TADADSUtilityuADPhysADS_TADADSUtility
File

uADPhysADS

Links

Use the TADADSUtility component to add the database table utilities to an application, like zap, pack or reindex a table. 

To use an utility an application should:

  • specify DriverLink, UserName, Password, Database;
  • specify Tables - the list of table names;
  • specify TableType - the table type for free connection;
  • specify TablePassword - the encrypted tables password for free connection;
  • call Pack, Zap or other method.
TADADSUtility = class(TADADSService);
ADADSUtility1.DriverLink := ADPhysADSDriverLink1;
ADADSUtility1.Database := 'C:\DB;ServerTypes=Local';
ADADSUtility1.Tables.Add('EVENT.DBF');
ADADSUtility1.TableType := ttVFP;
ADADSUtility1.Pack;
What do you think about this topic? Send feedback!