DB2Connection.ClientAccountingInformation property
Gets or sets the client accounting string.
- Namespace:
IBM.Data.
DB2
- Assembly:
IBM.Data.
DB2
(in IBM.Data.DB2
.dll)
Syntax
[Visual Basic]
Public Property ClientAccountingInformation As String
[C#]
public string ClientAccountingInformation {get; set;}
[C++]
public: __property String* get_ClientAccountingInformation();
public: __property void set_ClientAccountingInformation(String*);
[JScript]
public function get ClientAccountingInformation() : String;
public function set ClientAccountingInformation(String);
Property value
The IBM® Data Server Provider for .NET has limit of 255 characters for the ClientAccountingInformation property.
Database
servers enforce different limitation in the length of the value and
can truncate it. Note the following conditions:
- Db2® for z/OS® Version 11 servers in new function mode (NFM) support a length of up to 255 characters.
- Db2 for z/OS Version 10 and earlier servers support a length of up to 200 characters.
- Db2 for IBM i V6R1 and later servers support a length of up to 255 characters.
The default value of the ClientAccountingInformation property is an empty string ("").
The ClientAccountingInformation property value in the DB2Connection class is stored in the Db2 special register (CURRENT CLIENT_ACCTNG).
The ClientAccountingInformation property must be set before the start of a transaction. Changes to the ClientAccountingInformation property after the start of a transaction do not take effect until the start of the next transaction.
Db2 for z/OS servers use the ClientAccountingInformation property value in the DB2Connection class to classify work.
You can obtain the default value that is
set by the client on the Db2 for z/OS server
when the following conditions are met:
- You have not explicitly set the client accounting registry value.
- The enableDefaultClientInfo IBM data server driver configuration keyword is set to True.