SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches

Provides a mechanism for making direct calls to the ODBC API. More...

#include <rw/db/odbcsrc/odbsysh.h>

Inheritance diagram for RWDBODBCLibSystemHandle:
RWDBSystemHandle

Public Member Functions

SQLHDBC hdbc () const
 

Detailed Description

Class RWDBODBCLibSystemHandle contains the SQLHDBC used by the RWDBConnection.

Note
Use of this class reduces an application's portability.
Synopsis
#include <rw/db/odbcsrc/odbsysh.h>
(RWDBODBCLibSystemHandle*)myConnection.systemHandle();
Provides a mechanism for making direct calls to the ODBC API.
Definition odbsysh.h:69
Example

If it is necessary for your application to make calls directly to the ODBC API, proceed as in the following example.

#include <rw/db/odbcsrc/odbsysh.h>
#include <sql.h>
#include <sqlext.h>
#include <windows.h>
RWDBConnection odbcConnect = myDbase.connection();
SQLHDBC sqlhdbc = handle->hdbc();
// Use sqlhdbc for ODBC API calls.
Represents an explicit database connection object that can be used in place of the implicit database ...
Definition connect.h:81
RWDBSystemHandle * systemHandle() const
SQLHDBC hdbc() const

Member Function Documentation

◆ hdbc()

SQLHDBC RWDBODBCLibSystemHandle::hdbc ( ) const

Returns the SQLHDBC encapsulated by the respective RWDBConnection.

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