I am trying to the SID (Session ID) for a currently used connection, so I can audit what users are using what connections.
The use for this is that long running queries can be killed individually by our DBA and the users alerted that their process has been killed (or something to that extent…).
I can’t tell you what the NHibernate Session ID might be and how it might be found.
You can obtain the session ID on the Informix server by using the built-in function
DBINFO('sessionid'), for example as:Note that the argument to DBINFO must be a literal string. When I ran it, it produced the answer ’30’, which corresponded to the
sessidcolumn in the output ofonstat -ufor the Informix data server.