db2_client_info -- Returns an object with properties that describe the DB2 database client
object db2_client_info ( resource connection )
This function returns an object with read-only properties that return
information about the DB2 database client. The following table lists
the DB2 client properties:
Table 1. DB2 client properties
The application code page.
The code page for the current connection.
The data source name (DSN) used to create the current connection
to the database.
The name of the library that implements the DB2 Call
Level Interface (CLI) specification.
The version of ODBC that the DB2 client supports. This returns a
string "MM.mm" where MM is the major version and
mm is the minor version. The DB2 client always
The version of the client, in the form of a string "MM.mm.uuuu" where
MM is the major version,
mm is the minor version,
and uuuu is the update. For example, "08.02.0001"
represents major version 8, minor version 2, update 1.
The level of ODBC SQL grammar supported by the client:
Supports the minimum ODBC SQL grammar.
Supports the core ODBC SQL grammar.
Supports extended ODBC SQL grammar.
The version of ODBC that the ODBC driver manager supports. This
returns a string "MM.mm.rrrr" where MM is the major
version, mm is the minor version, and
rrrr is the release. The DB2 client always returns
Specifies an active DB2 client connection.
Returns an object on a successful call. Returns FALSE on failure.
Example 1. A db2_client_info() example
To retrieve information about the client, you must pass a valid
database connection resource to db2_client_info().