Helps administrators identify the origin of particular client connections from a database server.
This connection parameter is sent to the database server from Embedded SQL, ODBC, or OLE DB clients, as well as DBISQLC on UNIX. It is not available from Open Client.
The parameter consists of a generated string that holds information about the client process, such as the IP address of the client machine, 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:
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.
dbisql nogui -c "uid=DBA;pwd=sql" -host MachineName -port 1234
View the application information:
SELECT connection_property('AppInfo')
The result is as follows (in a single string):
IP=12.345.67.899; HOST=MachineName; OSUSER=sybase; OS='SunOS 5.10 Generic_144489_04'; EXE='/Sybase/IQ16/shared/JRE-7_0_1/bin/amd64/java'; PID=0x52af; THREAD=0x14; VERSION=16.0.0.290; API=iAnywhereJDBC; TIMEZONEADJUSTMENT=-240
isql -U DBA -P sql -S MachineName:1234 --appname MyISQL
View the application information:
SELECT connection_property('AppInfo')
The result is as follows (in a single string):
HOST=MachineName; PID=21155; EXE=MyISQL