Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - Database Administration » Connection Parameters and Network Protocol Options » Connection parameters

Connection parameters Next Page

AppInfo connection parameter [APP]


Assists administrators in identifying the origin of particular client connections from a database server.

Usage

Anywhere

Values

String

Default

Empty string

Remarks

This connection parameter is sent to the database server from embedded SQL, ODBC, OLE DB, or ADO.NET clients and from applications using the iAnywhere JDBC driver. It is not available from Open Client or jConnect applications.

It consists of a generated string that holds information about the client process, such as the IP address of the client computer, the operating system it is running on, and so on. The string is associated in the database server with the connection, and you can retrieve it using the following statement:

SELECT CONNECTION_PROPERTY( 'AppInfo' )

Clients can also specify their own string, which is appended to the generated string. The AppInfo property string is a sequence of semicolon-delimited key=value pairs. The valid keys are as follows:

If you specify a debug log file in your client connection parameters, the APPINFO string is added to the file.

See also
Example

Connect to the sample database from Interactive SQL (the iAnywhere JDBC driver is used by default):

dbisql -c "UID=DBA;PWD=sql;DBF=samples-dir\demo.db"

View the application information:

SELECT CONNECTION_PROPERTY( 'AppInfo' )

The result is as follows (in a single string):

IP=ip-address;HOST=computer-name;OS='Windows 2000 Build 2195 Service Pack 3';PID=0x724;THREAD=0x6bc;EXE=c:\Program Files\SQL Anywhere 10\win32\dbisqlg.exe;VERSION=10.0.0.2023;API=iAnywhereJDBC;TIMEZONEADJUSTMENT=-300

Connect to the sample database from Interactive SQL, appending your own information to the AppInfo property:

dbisql -c "UID=DBA;PWD=sql;DBF=samples-dir\demo.db;APP=Interactive SQL connection"

View the application information:

SELECT CONNECTION_PROPERTY( 'AppInfo' )

The result is as follows (in a single string):

IP=ip-address;HOST=computer-name;OS='Windows 2000 Build 2195 Service Pack 3';PID=0x8d0;THREAD=0xd74;EXE=c:\Program Files\SQL Anywhere 10\win32\dbisqlg.exe;VERSION=10.0.0.2023;API=iAnywhereJDBC;TIMEZONEADJUSTMENT=-300;APPINFO=ISQL connection