InterBase Quick Start: Part I - Create a Database

From InterBase
Jump to: navigation, search

Go Up to InterBase Quick Start: Part I - Getting Started

Now that you have created a valid user name, you can create the TUTORIAL database that you will use for the exercises in this tutorial. InterBase databases are stored in files that have a .gdb extension.

Image 025.jpg Creating the TUTORIAL Database

  1. If it is not already open, open IBConsole by choosing it from the InterBase folder on the Start > Programs menu.
  2. Log on to the server as the TUTOR user.
    Note: Be sure you log on as TUTOR for the remaining exercises in this tutorial.
  3. For this tutorial you will use <path>\Embarcadero\InterBase\gds_db\examples\database\. If you choose a different location, you must edit the CONNECT statement in the SQL script files to reflect the new location. (You are instructed how to do this a little later.)
  4. Open the Create Database dialog by highlighting the server in the left pane and selecting Database > Create Database.
    CreateDatabase.png
  5. Enter Tutorial in the Alias field
  6. In the Filename field, browse to the location of your new database at:
    <path>\Embarcadero\InterBase\gds_db\examples\database\
    SpecifyDatabaseName.png
  7. Enter tutorial in the File name field and click Save. This creates a TUTORIAL.IB file.
  8. Set the SQL Dialect to 3. Leave the rest of the settings as is.
  9. Click OK to create the TUTORIAL database. This new database named TUTORIAL belongs to the user TUTOR.

Image 025.jpg Connecting to a Database

  1. To connect to the database, click DatabaseConnectButton.png and the DataBase Connect dialog opens.
    Note: The Database Connect dialog opens automatically when you create the TUTORIAL database.
    DatabaseConnectDialog.png
  2. Enter your password and then click Connect.
Once you are connected, the Status Bar at the bottom of the IBConsole window shows the server name, the name of the database you just created, and the name of the user connected to the server.
DatabaseConnected.png

Image 025.jpg Disconnecting from a Database

To disconnect from a database:

  • Click Disconnect (DatabaseButton.png)

OR

  • Select Database > Disconnect.


  • Click Yes to accept the command.

Advance To: