Helpful Information
 
 
Category: Firebird SQL Development
How to get CONNECTED users info?

How can I get connected users info (name ...) width delphi in Firebird 1.5 RC5

Originally posted by CsoTor
How can I get connected users info (name ...) width delphi in Firebird 1.5 RC5
Here is an article

http://community.borland.com/article/0,1410,29889,00.html

Also there is a c example only for it :(

http://www.ibphoenix.com/main.nfs?a=ibphoenix&l=;IBPHOENIX.KNOWLEDGEBASE;ID='279'

An example how to use the TIBDatabaseInfo but of course you have to read UserNames property (TStringList)


to retrieve the dialect of the database you need to use the TIBDatabaseInfo component. This component has a property, DBSQLDialect, that you can access to retrieve the connected database's dialect. Here is a code example that retrieves the connects to a database and retrieves its dialect for display.

// set database to connect to
ibdatabase1.DatabaseName := 'employee.gdb';

// connect to database
ibdatabase1.Connected := true;

// retrieve database dialect and display in edit box
Edit1.Text := IntToStr(ibdatabaseinfo1.DBSQLDialect);


http://bdn.borland.com/article/0,1410,27201,00.html#_Using_IBDatabaseInfo

Thanx










privacy (GDPR)