Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

2.2 Databases and Connections

This section describes the arguments required to create an instance of RWDBDatabase for the Sybase CT access library.

In order for a DBTools.h++ application to open and use the connections required for interacting with a database, an RWDBDatabase instance must be created by calling:

All arguments are of type RWCString. For Client-Library, you must provide the following arguments:

Here are three examples of opening a database on a specific server, INHOUSE.

The first example opens a specific database, ACCOUNTING. A user name and a password are given to provide the highest level of security. Notice that the accessLib is defined as SYBASE_CT, indicating that the application must be linked with the static version of the access library:

The second example shows opening the same database from a MS Windows-NT application. In this case, the accessLib is defined as ctl4d.dll, indicating that the application will dynamically load (DLL) the access library at runtime:

The final example shows opening a user's default database, that is, the database assigned to the user by the database administrator. In this case, an application will use the access library as an UNIX shared library at runtime:

The library name and path shown are for Solaris.


Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.