![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Folks: I'd like to log some data about the current client session, and there doesn't seem to be any direct way to do this using Informix-provided native functions or variables (for example, something equivalent to HOST_NAME, HOST_ID and SYSTEM_USER in MSSQL). I'm assuming this would be done by using DBINFO('sessionid') to get the Session Control Block ID and then doing some trolling around in the SCB to get the data I want to log, but a quick search doesn't find any examples of accessing the SCB via UDF/SPL code. |
#3
| |||
| |||
|
|
On Mon, 2007-07-30 at 17:50 +0000, John Hardin wrote: I'd like to log some data about the current client session, and there doesn't seem to be any direct way to do this using Informix-provided native functions or variables (for example, something equivalent to HOST_NAME, HOST_ID and SYSTEM_USER in MSSQL). I'm assuming this would be done by using DBINFO('sessionid') to get the Session Control Block ID and then doing some trolling around in the SCB to get the data I want to log, but a quick search doesn't find any examples of accessing the SCB via UDF/SPL code. Try "select * from sysmaster:syssessions where sid = dbinfo('sessionid')" and go from there. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |