Hi all,
In a multi user setup I can find out who is registered as a system user by running SELECT * FROM INFORMATION_SCHEMA.SYSTEM_USERS, but I am at a complete loss as to how to find the name of the CURRENT_USER or SESSION_USER which apparently is the same? The HSQL manual only waffles about some temporary table ? There must be a way to list all sessions and associated users.
Anyone familiar with this, thanks for your thoughts.
[Solved] Find session_user in HSQL2.5
[Solved] Find session_user in HSQL2.5
Last edited by robleyd on Tue Feb 04, 2020 8:06 am, edited 2 times in total.
Reason: Add green tick
Reason: Add green tick
Libre Office 6.4.6 on Windows 10 HSQL 2.51 backend
Re: Find session_user in HSQL2.5
gkick wrote:There must be a way to list all sessions and associated users.
Code: Select all
SELECT
INFORMATION_SCHEMA.SYSTEM_SESSIONS.*
FROM INFORMATION_SCHEMA.SYSTEM_SESSIONS
For example:
Code: Select all
SELECT
INFORMATION_SCHEMA.SYSTEM_SESSIONS.SESSION_ID,
INFORMATION_SCHEMA.SYSTEM_SESSIONS.USER_NAME,
INFORMATION_SCHEMA.SYSTEM_SESSIONS.CONNECTED
FROM INFORMATION_SCHEMA.SYSTEM_SESSIONS
I hope this helps, please be sure to let me / us know.HSQL 2.5.0 Documentation wrote:
SYSTEM_SESSIONS
Information on all open sessions in the database (when used by a DBA user), or just the current session. Includes the current transaction state of each session.
Sliderule
Thanks to add [Solved] in your 1st post Subject (edit button top right) if this issue has been resolved.
Re: [Solved] Find session_user in HSQL2.5
Thanks, works like a treat!
Libre Office 6.4.6 on Windows 10 HSQL 2.51 backend