FireDAC.Phys.ADS.TFDADSUtility.Encrypt

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
FireDAC.Phys.ADS.pas
FireDAC.Phys.ADS.hpp
Unit: FireDAC.Phys.ADS
Parent: TFDADSUtility

Delphi

procedure Encrypt;

C++

void __fastcall Encrypt();

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;

See Also