Contents Index LastFetchOK method Reopen method pdf/preface.pdf

UltraLite User's Guide
  C++ API Reference
    ULConnection class

Open method


Prototype 

bool  Open ( ULData* db,
ul_char* userid,
ul_char* password,
ul_char* name = SQLNULL )

Description 

Open a connection to a database. The ULData object must be open for this call to succeed.

Parameters 

db    A pointer to the ULData object on which the connection is made. This argument is usually the address of the ULData object opened prior to making the connection.

userid    The user ID argument is a placeholder reserved for possible future use. It is ignored.

For more information on user IDs and UltraLite, see User authentication for UltraLite databases.

password    The password parameter is a placeholder reserved for possible future use. It is ignored.

name    An optional name for the connection. This is needed only if you have multiple connections from a single application to the same database.

Returns 

true (1) if successful.

false (0) if unsuccessful.

Example 

The following example opens a connection to the UltraLite database.

ULData db;
ULConnection conn;

db.Open();
conn.Open( &db, "dummy", "dummy" );
See also 

Close method


Contents Index LastFetchOK method Reopen method pdf/preface.pdf