SourcePro® API Reference Guide

 
List of all members | Public Member Functions

Encapsulates a single SQLHDBC used by the RWDBConnection. More...

#include <rw/db/db2clisrc/db2sysh.h>

Inheritance diagram for RWDBDB2CLILibSystemHandle:
RWDBSystemHandle

Public Member Functions

SQLHDBC hdbc () const
 

Detailed Description

Class RWDBDB2CLILibSystemHandle contains the SQLHDBC used by the RWDBConnection.

Note
Use of this class reduces an application's portability.
When using runtime loading of the DB2 CLI client, the SQLHDBC is not available. For information, see the section "Using Static Libraries with DB2 CLI Access Module and Microsoft SQL Server Module" in the DB Access Module for DB2 CLI User's Guide.
Synopsis
#include <rw/db/db2clisrc/db2sysh.h>
(RWDBDB2CLILibSystemHandle*)myConnection.systemHandle();
Example
If it is necessary for your application to make calls directly to the DB2 CLI, proceed as in the following example.
#include <rw/db/db2clisrc/db2sysh.h>
(RWDBDB2CLILibSystemHandle*)myConnection.systemHandle();
SQLHDBC hdbc = sys->hdbc();
// Use hdbc for DB2 CLI calls.

Member Function Documentation

SQLHDBC RWDBDB2CLILibSystemHandle::hdbc ( ) const

Returns the SQLHDBC encapsulated by the respective RWDBConnection.

Copyright © 2023 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.