FireDAC.Phys.ADS.TFDADSUtility.Decrypt

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 Decrypt;

C++

void __fastcall Decrypt();

Description

Decrypts an encrypted table and removes the password.

Use the Decrypt method to decrypt all the rows of an encrypted table, to disable encryption for the table, and to remove the password.

The tables must not be used by any of the processes. The Decrypt 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('EVENT.DBF');
FDADSUtility1.TableType := ttVFP;
FDADSUtility1.TablePassword := '12345';
FDADSUtility1.Decrypt;

See Also