Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
DB Access Module for Sybase User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

2.2 Databases and Connections

This section describes the arguments required to create an instance of RWDBDatabase for the DB Access Module for Sybase.

In order for a SourcePro DB 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 Sybase Open Client 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 specified. Notice that the accessLib is defined as SYBASE_CT, indicating that the application must be linked with the static version of the Access Module:

The second example shows opening the same database from a Microsoft Windows application. In this case, accessLib is defined as ctl8012d.dll, indicating that the application will dynamically load (DLL) the Access Module at runtime. The connection property CS_HOSTNAME is also supplied:

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 Module as a UNIX shared library at runtime:



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.