Solved

Connected to database

Posted on 2001-07-07
2
137 Views
Last Modified: 2010-04-06
Hi
I have a path to a interbase database, is there a way to determine if somebody is connected to the database?
0
Comment
Question by:koger
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 44

Expert Comment

by:CrazyOne
ID: 6261629
Well here is the way I do it.

var
 iFileHndl: Integer;

begin

iFileHndl := FileOpen('ThePath\File', fmShareExclusive or fmOpenReadWrite);
if iFileHndl < 1 then
     ShowMessage('File is already opened');

end;


The Crazy One
0
 
LVL 9

Accepted Solution

by:
ITugay earned 100 total points
ID: 6262295
Hi koger,

TIBDatabaseInfo component.


TIBDatabaseInfo.UserNames
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.

-----
Igor.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question