connect

Description

Establishes a connection to a database.

Syntax

Syntax one

connect
[ to engine_name ][ database database_name ][ as connection_name ][ user ] user_id identified by password
engine_name, database_name, connection_name, user_id , password :{ identifier | string | hostvar } 

Syntax two

connect using connect_stringconnect_string : { identifier | string | hostvar} 

Parameters

Examples

Once you connect to Adaptive Server, the server name, database name, and your user ID appear on the title bar, for example: “pubs2 (dbo) on tribble” would appear for the example above.

Usage

Permissions

Any user can run this command.

Side effects

None.

See also

disconnect, set connection