connect

説明

データベースへの接続を確立します。

構文

構文 1

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

構文 2

connect using connect_stringconnect_string :{ identifier | string | hostvar} 

パラメータ

Adaptive Server に接続すると、タイトル・バーにサーバ名、データベース名、ユーザ ID が表示されます。この例の場合は、"pubs2 (dbo) on tribble" と表示されます。

使用法

パーミッション

このコマンドは、すべてのユーザが実行できます。

二次的な影響

なし

参照

disconnectset connection