FireDAC.Phys.ADS.TFDADSUtility.Encrypt
Delphi
procedure Encrypt;
C++
void __fastcall Encrypt(void);
Contents
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FireDAC.Phys.ADS.pas FireDAC.Phys.ADS.hpp |
FireDAC.Phys.ADS | TFDADSUtility |
Description
Encrypts a table and assigns a password.
Use the Encrypt method to encrypt all the rows of a table, to enable encryption for the table, and to assign a password.
The tables must not be used by any of the processes. The Encrypt method is applicable only to free connections.
The Tables property specifies the list of the tables to process. The TableType property specifies the type of the tables. The TablePassword property specifies the table password.
Example
FDADSUtility1.DriverLink := FDPhysADSDriverLink1;
FDADSUtility1.Database := 'C:\DB;ServerTypes=Local';
FDADSUtility1.Tables.Add('ORDERS.DBF');
FDADSUtility1.TableType := ttVFP;
FDADSUtility1.TablePassword := '12345';
FDADSUtility1.Encrypt;