View Full Version : count ADODB.Connections
mohanvijay
08-19-2011, 01:35 AM
Hai all,
Is there anyway to count or find that how many ADODB.Connections currently used particular Access(mdb) database (without using Access 11.0 library)
Please help
hansup
08-19-2011, 11:40 AM
I'm not aware of any such method. You might need to keep track of those connections as you create and destroy them.
You might also inspect the .LDB lock file, but I doubt it records more than a single entry for each connected user/machine combination.
Why do you want that information, and how do you intend to use it? Assuming your interest is more than idle curiosity, give us details about what you want to accomplish and maybe someone can offer you a solution.
mohanvijay
08-21-2011, 08:02 PM
Hai hansub,
thanks for your reply
I just want to know that if before the machine connect to the database check the already any other machine accessing the same database
I don't like to use create seperate table for users in the database and i think ther must be another way to count the ADODB.Connections
HiTechCoach
08-22-2011, 07:22 AM
The .LDB/.LCCDB lock file does have a list of connected users.
mohanvijay
08-23-2011, 05:32 AM
Hai HitechCoach
thanks for your reply
i connect one mdb file with two coonections and open the ldb file in notepad that shows like below
"䥖䅊䅙啋䅍R††††††††††摁業n†††††††††††††䥖䅊䅙啋䅍R††††††††††摁業n†††††††††††††"
in above text "摁業n" repeats two times which means two connections (i think)
is this a way to identify connections? or how to i read .ldb file
please help me out
HiTechCoach
08-23-2011, 12:51 PM
Here is what I use to read the LDB file:
Who's Logged On / Who's Connected (v1.6.1) (http://www.utteraccess.com/forum/Who-s-Logged-Who-s-Con-t1897146.html&hl=connected)
mohanvijay
08-25-2011, 07:34 PM
Thanks for the link HitechCoach
HiTechCoach
08-25-2011, 07:56 PM
You're welcome.
Glad we could assist.
Tabitha30
09-15-2011, 02:50 AM
You said very professional,I will remember
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.