1.1

Table Of Contents
Identifier
]
Description
Connects to the database indicated by the ConnectionURLString. You have the option of specifying a name for
your connection. Use the set connection on page 444 command to switch between connections. If you do not
name a connection, the system generates a name automatically.
You also have the option of specifying a named protocol previously created with the protocol on page 441
command.
Note: If the connection requires a user name and password, supply those in the connection URL string,
as shown in the example.
If the connect succeeds, the connection becomes the current one and sqlf displays a new prompt for the next
command to be entered. If you have more than one open connection, the name of the connection appears in the
prompt.
All further commands are processed against the new, current connection.
Example
sqlf> protocol 'jdbc:derby:';
sqlf> connect '//armenia:29303/myDB;user=a;password=a' as
db5Connection;
sqlf> show connections;
DB5CONNECTION* - jdbc:derby://armenia:29303/myDB
* = current connection
connect client
Using the JDBC SQLFire thin client driver, connects to a SQLFire member indicated by the host:port values.
Syntax
CONNECT CLIENT 'host:port[;property=value]*' [ AS connectionName ]
Description
Uses the JDBC SQLFire thin client driver to connect to a SQLFire member indicated by the host:port values.
You can specify an optional name for your connection. Use the set connection on page 444 to switch between
multiple connections. If you do not name a connection, the system generates a name automatically.
If the connection requires a user name and password, supply those with the optional properties.
If the connect succeeds, the connection becomes the current one and sqlf displays a new prompt for the next
command to be entered. If you have more than one open connection, the name of the connection appears in the
prompt.
All further commands are processed against the new, current connection.
Example
sqlf version 10.4
sqlf> connect client 'localhost:1527' as clientConnection;
sqlf> show connections;
CLIENTCONNECTION* - jdbc:sqlfire://localhost:1527/
* = current connection
vFabric SQLFire User's Guide428
vFabric SQLFire Reference