FireDAC.Phys.MSAcc.TFDMSAccessService.Password

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Password: String read FPassword write FPassword;

C++

__property System::UnicodeString Password = {read=FPassword, write=FPassword};

Properties

Type Visibility Source Unit Parent
property published
FireDAC.Phys.MSAcc.pas
FireDAC.Phys.MSAcc.hpp
FireDAC.Phys.MSAcc TFDMSAccessService

Description

The database password.

Use the Password property for one of the CreateDB, Compact and Repair methods to work with protected databases. This property indicates the password if the database is already secured or sets the password for the non-secured database after calling these methods.

Example 1

// Create database and set password
FDMSAccessService1.Database := 'c:\test.mdb';
FDMSAccessService1.Password := 'J@^^1234pw';
FDMSAccessService1.CreateDB;

Example 2

// Set password for non-secured database
FDMSAccessService1.Database := 'c:\test.mdb';
FDMSAccessService1.Password := 'J@^^1234pw';
FDMSAccessService1.Compact;

See Also