Subject | Re: [firebird-support] How to limit the number of concurrent users to a database |
---|---|
Author | Fulvio Senore |
Post date | 2012-06-14T12:14:51Z |
Il 14/06/2012 12.36, Thomas Steinmaurer ha scritto:
different processes?
Fulvio
>> On 2012-06-13 18:56, Thomas Steinmaurer wrote:Does MON$ATTACHMENTS list users also for Classic, since Classic uses
>>> The condition could be queried e.g. by a COUNT(*) on the MON$ATTACHMENTS
>>> monitoring table or whatever you want to be included in the condition.
>>
>> Thomas,
>> Just by the way: do you know a simple way (a stored procedure with
>> elevated rights?) to get *all* active connections from MON$ATTACHMENTS
>> while connected as an ordinary user (not with the RDB$ADMIN role)?
>
> Good one. No, AFAIK there is no way, thus my suggestion with querying
> MON$ATTACHMENTS in an ON CONNECT trigger only works if connecting with
> SYSDBA or the database owner and not with an ordinary user.
>
different processes?
Fulvio