Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
SAConnection オブジェクトを初期化します。
Public Sub New(ByVal connectionString As String)
public SAConnection(string connectionString)
connectionString SQL Anywhere 接続文字列。接続文字列は keyword=value のペアがセミコロンで区切られたリストです。接続パラメーターのリストについては、接続パラメーターを参照してください。
接続を開いてから、データベース操作を実行してください。
次の文は、hr という名前の SQL Anywhere データベースサーバー上で動作している policies という名前のデータベースへの接続について SAConnection オブジェクトを初期化します。接続では、ユーザー ID admin とパスワード money を使用します。
SAConnection conn = new SAConnection( "UID=admin;PWD=money;SERVER=hr;DBN=policies" ); conn.Open();