Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (日本語) » SQL Anywhere サーバ - プログラミング » SQL Anywhere データ・アクセス API » SQL Anywhere Embedded SQL » ライブラリ関数のリファレンス

 

db_string_ping_server 関数

プロトタイプ
unsigned int db_string_ping_server(
SQLCA * sqlca,
char * connect_string,
unsigned int connect_to_db );
説明
  • connect_string   connect_string は、通常の接続文字列です。サーバとデータベースの情報を含んでいる場合もありますし、含んでいない場合もあります。

  • connect_to_db   connect_to_db が 0 以外 (TRUE) なら、この関数はサーバ上のデータベースに接続を試みます。TRUE を返すのは、接続文字列で指定したサーバ上の指定したデータベースに接続できた場合のみです。

  • connect_to_db   connect_to_db が 0 なら、関数はサーバの検索を試みるだけです。TRUE を返すのは、接続文字列でサーバを検索できた場合のみです。データベースには接続を試みません。