Contents Index db_string_disconnect function fill_s_sqlda function

ASA Programming Guide
  Embedded SQL Programming
    Library function reference

db_string_ping_server function


Prototype 

unsigned int db_string_ping_server(
SQLCA * sqlca,
char * connect_string,
unsigned int   connect_to_db );

Description 

The connect_string is a normal connect string that may or may not contain server and database information.

If connect_to_db is non-zero (true), then the function attempts to connect to a database on a server. It returns a non-zero (true) value only if the connect string is sufficient to connect to the named database on the named server.

If connect_to_db is zero, then the function only attempts to locate a server. It returns a non-zero value only if the connect string is sufficient to locate a server. It makes no attempt to connect to the database.


Contents Index db_string_disconnect function fill_s_sqlda function