Home | Database

Creating an Alias


I have a paradox database in a folder called e:\db\MyDB.db

I would like to use this in a new Delphi project but first I need to set up an alias.
It can be done like this:

First open Database Explorer.

Click on Object in the menu and then click on New.

The dialog box for New Database Alias appears. Make sure it has Standard selected then click the OK button.

Next give your alias a name.

In the right-hand pane you will see some items listed, like this:

Type:
Default Driver:
Enable BCD:
Path:

Click to the right of the word Path and you will see an Ellipsis button at the end of the line.
Click on the Ellipsis button to set the path for the Alias, in this case it would be:

E:\DB

Next go back to the menu and click on Object, when the menu drops down click on Apply.

You will be prompted to save all edits, click on the OK button.

You can now test your new alias by clicking on the plus (+) sign next to your alias name (to the left).
You should see the tree expand and show the Tables branch. Click on the Tables plus sign, etc.

If the above testing did not work you may have done something wrong, like use a wrong path so check this if you have any problems.

Back in the Delphi IDE you should be able to add a TTable to a form and in the Object Inspector (with Table1 selected) click on the DatabaseName drop-down list and find your new Alias.
In Table1.TableName (In the Object Inspector) you should find the table, in this example it is called MyDB.db.


Using Database Desktop to set an Alias:


Home | Database