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 嵌入式 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 为非零值 (TRUE),此函数会尝试连接到服务器上的数据库。只有在连接字符串足以连接到指定服务器上的指定数据库时,才返回 TRUE。

  • connect_to_db   如果 connect_to_db 为零,此函数只尝试定位服务器。只有在连接字符串足以定位服务器时,才返回 TRUE。它不尝试连接到数据库。