11.07.2015 Views

SQL Reference Volume 1 - Ibm

SQL Reference Volume 1 - Ibm

SQL Reference Volume 1 - Ibm

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CURRENT CLIENT_ACCTNGCURRENT CLIENT_ACCTNGThe CURRENT CLIENT_ACCTNG (or CLIENT ACCTNG) special register containsthe value of the accounting string from the client information specified for thisconnection. The data type of the register is VARCHAR(255). The default value ofthis register is an empty string.The value of the accounting string can be changed by using the Set ClientInformation (sqleseti) API.Note that the value provided via the sqleseti API is in the application code page,and the special register value is stored in the database code page. Depending onthe data values used when setting the client information, truncation of the datavalue stored in the special register may occur during code page conversion.Example: Get the current value of the accounting string for this connection.VALUES (CURRENT CLIENT_ACCTNG)INTO :ACCT_STRINGChapter 2. Language elements 129

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!