Database Connections

Connections to DB2 ODBC data sources are controlled with connection handles. Prior to connecting, a connection handle must be allocated. The program must execute on a system with a running DB2 for OS/390 and z/OS subsystem, though that subsystem doesn't have to be the desired data source.

Connecting

ODBC programs can connect to local DB2 subsystems, remote DB2 subsystems, or remote DRDA application servers. Each connection requires a separate connection handle. Remote connections require that the server be defined in the communications database of the local DB2 subsystem.

The SQLConnect() or SQLDriverConnect() functions are used to establish the connection to DB2. Both functions require a connection handle and a connection ...

Get DB2® Universal Database™ for OS/390™ v7.1 Application Certification Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.