db_string_connect Function

Provides extra functionality beyond the embedded SQL CONNECT statement.

Syntax

unsigned int db_string_connect( SQLCA * sqlca, char * parms );

Parameters

Returns

Non-zero if successful; 0 otherwise.

Remarks

The return value is TRUE (non-zero) if a connection was successfully established and FALSE (zero) otherwise. Error information for starting the server, starting the database, or connecting is returned in the SQLCA.