Subject RE: [IBO] Similar component to TIBDatabaseInfo from IBX?
Author Thomas Steinmaurer
This is exactly what I need :-). Thanks Helen.

How do I get the number of connected users for a given database? I got
something from the online help but I don't know if this is reliable?

<online_help>
Applies to
TIB_Connection
Declaration
Property Users : TStrings;
Description
Property to get the usernames logged on to the current database.

This seems to only provide a listing of users who are logged in to the
server from the machine that is making the request. You only get a complete
listing if you run the program from the server locally.

I suspect that this is an IB bug and that it will be fixed in a future
release.
</online_help>

Thanks
Thomas

> -----Original Message-----
> From: Helen Borrie [mailto:helebor@...]
> Sent: Monday, August 13, 2001 8:37 AM
> To: IBObjects@yahoogroups.com
> Subject: Re: [IBO] Similar component to TIBDatabaseInfo from IBX?
>
>
> At 08:27 AM 13-08-01 +0200, you wrote:
> >Hi list,
> >
> >currently I'm migrating an IBX application to IBO. In the IBX
> app I'm using
> >a component called TIBDatabaseInfo to get information about the number of
> >connected users for a database, ODS information, .... Is there something
> >similar in IBO?
>
>
> Yes, it's called TIB_Connection. :))
>
> Look up the Characteristics property...
>
> TIB_ConnectCharacteristics = packed record
> dbAllocation: longint;
> dbLevelPrefix: byte;
> dbBase_Level: byte;
> dbFilePrefix: byte;
> dbFile: string;
> dbSite: string;
> dbImplementationPrefix: byte;
> dbImplementation: byte;
> dbClass: byte;
> dbNo_Reserve: byte;
> dbForced_Writes: byte;
> dbODS_Minor_Version: word;
> dbODS_Version: word;
> dbPage_Size: word;
> dbVersionPrefix: byte;
> dbVersion: string;
> dbSweep_Interval: integer;
> dbPage_Buffers: integer;
> dbSQLDialect: integer;
> dbReadOnly: boolean;
> dbSizeInPages: integer;
> end;
>
> hth
> Helen
>
>
> All for Open and Open for All
> InterBase Developer Initiative ยท http://www.interbase2000.org
> _______________________________________________________
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>