Connecting with isql
Firebird ships with a text-mode client named isql (Interactive SQL utility).You can use it in several ways to connect to a database.One of them, shown below, is to start it in interactive mode.Go to the directory where the Firebird tools reside (see [qsg5-disk-locations] if necessary) and type isql
(Windows) or ./isql
(Linux) at the command prompt.
Note
|
In the following examples, [chevron circle left] means “hit kbd:[Enter]” |
C:\Programmas\Firebird\Firebird_3_0>isql[chevron circle left] Use CONNECT or CREATE DATABASE to specify a database SQL>connect xnet://employee user sysdba password masterkey;[chevron circle left]
Important
|
|
Note
|
You can optionally enclose the path, the username and/or the password in single ( |
At this point, isql
will inform you that you are connected:
Database: xnet://employee, User: SYSDBA SQL>
You can now continue to play about with the employee
database.With isql
you can query data, get information about the metadata, create database objects, run data definition scripts and much more.
To get back to the OS command prompt, type:
SQL>quit;[chevron circle left]
You can also type EXIT
instead of QUIT
, the difference being that EXIT
will first commit any open transactions, making your modifications permanent.