Solved

Connected to database

Posted on 2001-07-07
2
134 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…

829 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