Creating a Database Connection (InterBase Tutorial)

From RAD Studio
Jump to: navigation, search

Go Up to Tutorial: Using an InterBase Database in a Delphi or C++ Application


In RAD Studio, define a database connection using Data Explorer, which is located in the same pane with the Projects Window and the Model View.

In this example, an InterBase database is used, but you could use any database available to you. You need to meet the requirements for your particular database. For instance, to use InterBase, you must have its server running and the DLL for the database must be in the system path. The Interbase database used here and in other examples, named Employee, is installed with RAD Studio.

In the Data Explorer, right-click the InterBase Server item:

DataExplorer-InterBaseTutorial.png

Then click Add New Connection, and the Add New Connection dialog is displayed:

AddInterBaseConnection-InterBaseTutorial.png

Enter a connection name and click OK.

The Modify Connection dialog is displayed:

ModifyConnectiondialog-InterBaseTutorial.png


Enter a database name, a user name and a password and click Test Connection.


TestConnectionSucceded-InterBaseTutorial.png


You should get a message dialog informing you the connection succeeded. Click OK.

The Data Explorer should now look like this, displaying information about the database:


DataExplorerInformationDB-InterBaseTutorial.png

Next

Creating the Server Side with DataSnap Server