Database Aliases and the ads.ini File

Advantage TDataSet Descendant

The Advantage TDataSet Descendant supports database aliases. The database alias is used by Advantage components to reference a database directory on disk. The alias is associated to a path and may change when the data files are moved to different directories, drives, or file servers. The alias name must be established prior to being used by the application.

Database aliases and their values are read from a file named ads.ini. See ads.ini File Support for details on where the ads.ini file can reside.

The alias file must be of this format:

[Databases]

ALIASNAME=c:\path;x

where x is N, C, A, or D.

N=ttAdsNTX

C=ttAdsCDX

A=ttAdsADT

D=Advantage Data Dictionary connection

Examples:

[Databases]

TEST_NTX=X:\data;N

TEST_CDX=X:\data;C

TEST_ADT=X:\data;A

TEST_DICTIONARY=X:\data\mydictionary.add;D

 

Aliases may be used in the following ways: