Subject Re: active database session
Author Ryan Nilsson-Harding
The TIB_Connection component has a TStrings property called Users.
This will return a list of currently logged in users which you can
then iterate through or display in a list box.

e.g.

currCon: TIB_Connection;
lbUsers: TListBox;

...

lbUsers := currCon.Users;


But be sure to prevent other users logging in whilst performing your
metadata update, using exclusive access

Rgds,
-Ryan


--- In IBObjects@yahoogroups.com, "innoy1k" <duncan.chen@t...> wrote:
> In Delphi 5, is there a way to check if there are any active database
> users via IBObject? Basically, I want to make sure there is no active
> darabase user before execute a metadata update process.
>
> Thanks in advance for any helps