Bde.DBTables.TSession.SaveConfigFile

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SaveConfigFile;

C++

void __fastcall SaveConfigFile();

Properties

Type Visibility Source Unit Parent
procedure
function
public
Bde.DBTables.pas
Bde.DBTables.hpp
Bde.DBTables TSession

Description

Writes the current information in the Borland Database Engine (BDE) persistent store from memory to the BDE configuration file on disk.

Call SaveConfigFile to write any BDE configuration changes currently in memory to the BDE configuration file on disk. When the BDE is first initialized, the current BDE configuration file is read into persistent storage in memory. Applications can read or modify the configuration file in memory, but modification exist only in memory, not on disk.

For example, if an application defines a new BDE alias with AddAlias, the alias exists in memory only for as long as the BDE resides in memory. To store the new alias for later use by all applications that use the BDE, call SaveConfigFile. SaveConfigFile overwrites the disk image of the configuration file with the in-memory image of the persistent configuration file.

Note: If a session's ConfigMode property is cmSession, added aliases cannot be saved to the BDE configuration file.

See Also