Subject | Re: active database session |
---|---|
Author | innoy1k |
Post date | 2004-05-20T23:21:02Z |
Hi Ryan,
This is great, thank you very much of your help.
If you don't mind for one more quesiton, which object provides the
exclusive access of the database? This will extremely helpful when we
start the archive process.
thanks in advance again.
Cheers,
Duncan
--- In IBObjects@yahoogroups.com, "Ryan Nilsson-Harding"
<nilsson@b...> wrote:
This is great, thank you very much of your help.
If you don't mind for one more quesiton, which object provides the
exclusive access of the database? This will extremely helpful when we
start the archive process.
thanks in advance again.
Cheers,
Duncan
--- In IBObjects@yahoogroups.com, "Ryan Nilsson-Harding"
<nilsson@b...> wrote:
> The TIB_Connection component has a TStrings property called Users.wrote:
> 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...>
> > In Delphi 5, is there a way to check if there are any activedatabase
> > users via IBObject? Basically, I want to make sure there is noactive
> > darabase user before execute a metadata update process.
> >
> > Thanks in advance for any helps