Creation of the database alias

Top

The parameters of a database (DB) and its location are defined by a DB alias (name).

For allocation of the database create the directory on a hard disk, for example, DBF directory on the disk C.

The access to a DB is realized by the database alias. The alias should be registered in the configuration file of the concrete computer by the BDE Administrator utility. Let's assign an alias "BASE" to a created DB. For this purpose you must start the BDE Administrator utility (it is easier to make with help of the command Base / BDE Administrator, or having selected the item Service / BDE Administrator of a Base Administrator. Select the element Object/New from the main window of the utility. In the appeared window you must keep the type of a created DB without changes (STANDART) and press OK button.

 

 

In left margin of the window of the BDE Administrator you will see line with a name STANDART1. Change this name onto BASE.

In the right margin the DB parameters are indicated. Change the PATH parameter, which one indicates the path of access to the directory, in which DB is located. It is possible to enter path manually, but better to use resources of BDE Administrator: for this purpose it is necessary to click on a field PATH and then to click the button, which has appeared in a right angle. Then it is necessary to select C:\DBF directory and to click OK button.

 

           

 

Now it is necessary to store the alias definition. For this purpose in the left window of BDE Administrator it is necessary to click on a alias name by the right mouse button and in the padding menu select Apply option. In the appeared dialog box press OK button. Close the window of the BDE Administrator utility: the creation of an alias is finished and it is possible to have access to it from other utilities and applications. However directory, onto which an alias of a DB refers, is still empty. It is necessary to create the database tables in it.