Студопедия
rus | ua | other

Home Random lecture






Delphi's Built-in Databases


Date: 2015-10-07; view: 526.


As long as I am on the subject of aliases, let's take a quick look at the aliases already set up on your system. To view existing aliases, perform these steps:

1.Start Delphi or create a new application if Delphi is already running.

2.Switch to the Data Access tab of the Component palette, select a Table component, and place it on the form.

3.Click on the DatabaseName property in the Object Inspector and then click the drop-down arrow button to display a list of aliases.

After performing these steps, you'll see a list of available databases. At least one of these should be the DBDEMOS alias. This database alias is set up when Delphi is installed. Select the DBDEMOS database from the list.

NOTE: The list of databases you see depends on several factors. First, it depends on whether you have the Standard, Professional, or Client/Server version of Delphi. It also depends on whether you elected to install Local InterBase. Finally, if you happen to have C++Builder or another Borland product installed (such as Visual dBASE or IntraBuilder), you might see additional databases.

As long as you are here, move to the TableName property and take a look at the available tables. The tables you see are those available for this database (this alias). Select another alias for the DatabaseName property. Now look at the table names again. You will see a different list of tables.


<== previous lecture | next lecture ==>
BDE Aliases | LOCAL INTERBASE
lektsiopedia.org - 2013 год. | Page generation: 0.512 s.