Hola,
prueba el componente
TIBDatabaseInfo.
conectalo a tu bd y comprueba su propiedad
UserNames.
Ayuda de Delphi:
Cita:
Returns the names of all users currently attached to the database.
property UserNames: TStringList;
Description
Use UserNames to return the names of all users currently attached to the database.
|
Ejp:
Código Delphi
[-]
if (IBDatabaseInfo.UserNames.Count <> 1) then
Salu2.