Advanced Features : Using Client Information : How Databases Store Client Information : Storing Client Information

Storing Client Information
Your application can store client information associated with a connection using any of the following methods:
*
Using the driver connection properties listed in the following table. This table lists the connection properties your application can use to store client information and where that client information is stored for each database. See the individual driver chapters for a detailed description of each property. See Using the Drivers for information about specifying connection properties using a URL or a JDBC data source.
*
*
*
Connection.setClientInfo(property_name, value)
Refer to JDBC Support in the DataDirect Connect Series for JDBC Reference for more information about these JDBC methods.
*
Using the JDBC extension methods provided in the com.ddtek.jdbc.extensions package. Refer to JDBC Extensions in the DataDirect Connect Series for JDBC Reference for more information about the com.ddtek.jdbc.extensions package.
 
Additional information that may be used for accounting or troubleshooting purposes, such as an accounting ID
CURRENT CLIENT_ACCTNG register (DB2 for Linux/UNIX/Windows) or CLIENT ACCTNG register (DB2 for z/OS and DB2 for iSeries).
Progress OpenEdge
Microsoft Windows Azure SQL Database
Microsoft SQL Server
The current action (Select, Insert, Update, or Delete, for example) within the current module
Progress OpenEdge
Microsoft Windows Azure SQL Database
Microsoft SQL Server
Name of the application currently using the connection
CURRENT CLIENT_APPLNAME register (DB2 for Linux/UNIX/Windows) or CLIENT APPLNAME register (DB2 for z/OS and DB2 for iSeries). For DB2 V9.1 and higher for Linux/UNIX/Windows, it is also stored in the APPL_NAME column in the SYSIBMADM.APPLICATIONS table.
dbms_session value. In addition, it is also stored in the PROGRAM column in the V$SESSION table.
Progress OpenEdge
Microsoft Windows Azure SQL Database
Microsoft SQL Server
For Microsoft SQL Server 2000 and higher, program_name column in the sysprocesses table. For Microsoft SQL Server 7, local cache.
clientapplname and program_name column in sysprocesses table.
Host name of the client on which the application using the connection is running
CURRENT CLIENT_WRKSTNNAME register (DB2 for Linux/UNIX/Windows) or CLIENT WRKSTNNAME register (DB2 for z/OS and DB2 for iSeries).
Progress OpenEdge
Microsoft Windows Azure SQL Database
Microsoft SQL Server
For Microsoft SQL Server 2000 and higher, hostname column in the sysprocesses table. For Microsoft SQL Server 7, local cache.
Additional information about the client to be stored in the database
For Oracle9i R1 (9.0.1) and higher, the CLIENT_IDENTIFIER column in the V$SESSION table.
Progress OpenEdge
Microsoft Windows Azure SQL Database
Microsoft SQL Server
User ID for whom the application using the connection is performing work
CURRENT CLIENT_USERID register (DB2 for Linux/UNIX/Windows) or CLIENT USERID register (DB2 for z/OS and DB2 for iSeries).
Progress OpenEdge
Microsoft Windows Azure SQL Database
Microsoft SQL Server
Driver name and version on the client
CLIENT_PRDID value. For DB2 V9.1 and higher for Linux/UNIX/Windows, it is located in the SYSIBMADM.APPLICATIONS table.
Progress OpenEdge
Microsoft Windows Azure SQL Database
Microsoft SQL Server
For Microsoft SQL Server 2000 and higher, the hostprocess column in the sysprocesses table. For Microsoft SQL Server 7, local cache.
The module name to be stored in the database
Progress OpenEdge
Microsoft Windows Azure SQL Database
Microsoft SQL Server

© 2012 Progress Software Corporation and/or its subsidiaries or affiliates.