connect
Syntax
connect[connection_string |[[DSN][as]connid [adding] [connection_string | DSN][as connid]
Description
Connects to the database with the specified ODBC
connection_string
.
If no password is supplied in this format, ttIsql
prompts for
the password.
If no user is given, ttIsql
attempts to connect using the
user name of the current user as indicated by the operating system.
If as
connid
is specified, you can explicitly name the connection. The
connid
must be only alphanumeric characters, is case sensitive, must
start with an alpha character and can only be a maximum of 30 characters in length. The name
of connid
is automatically supplied to the ConnectionName
general connection attribute. If the connect fails, the current connection is set to a
special reserved connection named "none," which is never connected to anything.
When adding
is specified, it refers to creating a new
connection to the DSN specified by DSN
or by the connection
string.
Examples
Command> connect "DSN=database1"; Connection successful: DSN=database1;DataStore=/disk1/databases/database1;DatabaseCharacterSet=AL32UTF8; ConnectionCharacterSet=AL32UTF8;PermSize=128; (Default setting AutoCommit=1)