473,387 Members | 3,750 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Connection to Access DataBase

If I have one computer open a connection to an access database that's on a
network Drive, how can I determine from another computer if there is a
connection to that database open on the other computer? Would appreciate any
help.
--
Dennis in Houston
Nov 21 '05 #1
6 1468
Dennis,

This is an many times asked question. The answer is simple you cannot.

This should be implemented in the OS and that is not. As you probably know
has ms office its complete own implementation around that.

No answer however maybe it helps,

Cor
Nov 21 '05 #2
Dennis,
With Access if the database is open there is an ldb file of the same name as
the mdb file. The first connection creates this ldb file.
You could look to see if there is an ldb file present.
If there is no ldb then there is no connection.
The ldb is not always deleted when the connection is removed so you would
need to try and delete the ldb file. If there is still a connection, the ldb
file is locked and you will not be able to delete it.

If you can not delete it there is still a connection.

Doug

"Dennis" <De****@discussions.microsoft.com> wrote in message
news:FB**********************************@microsof t.com...
If I have one computer open a connection to an access database that's on a
network Drive, how can I determine from another computer if there is a
connection to that database open on the other computer? Would appreciate any help.
--
Dennis in Houston

Nov 21 '05 #3
Dennis,

I gave the right answer on the wrong question.

My answer was on the question "Who has a connection open"

Dough gave a right answer.

Be aware that this is one of the terrible things of an Access database see
this.

Open connection.
Fill dataset.
Close connection
Somebody replaces the database
Open connection
Update database
.......

In fact do you all the time have to check if it exist.
(A real database server is only to manage by an admin).

Cor
Nov 21 '05 #4
On Thu, 23 Jun 2005 16:53:02 -0700, Dennis <De****@discussions.microsoft.com> wrote:

¤ If I have one computer open a connection to an access database that's on a
¤ network Drive, how can I determine from another computer if there is a
¤ connection to that database open on the other computer? Would appreciate any
¤ help.

There is no built-in .NET method to do this. You need to use ADO:

How to determine who is logged on to a database by using Microsoft Jet UserRoster in Access 2000
http://support.microsoft.com/default...;en-us;Q198755

For earlier versions of Access:

ACC: Microsoft Jet Utilities Available in Download Center
http://support.microsoft.com/default...;EN-US;q176670
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 21 '05 #5
Thanks for answers. Is there a way to do this using a MSDE database?
--
Dennis in Houston
"Paul Clement" wrote:
On Thu, 23 Jun 2005 16:53:02 -0700, Dennis <De****@discussions.microsoft.com> wrote:

¤ If I have one computer open a connection to an access database that's on a
¤ network Drive, how can I determine from another computer if there is a
¤ connection to that database open on the other computer? Would appreciate any
¤ help.

There is no built-in .NET method to do this. You need to use ADO:

How to determine who is logged on to a database by using Microsoft Jet UserRoster in Access 2000
http://support.microsoft.com/default...;en-us;Q198755

For earlier versions of Access:

ACC: Microsoft Jet Utilities Available in Download Center
http://support.microsoft.com/default...;EN-US;q176670
Paul
~~~~
Microsoft MVP (Visual Basic)

Nov 21 '05 #6
On Fri, 24 Jun 2005 15:33:01 -0700, Dennis <De****@discussions.microsoft.com> wrote:

¤ Thanks for answers. Is there a way to do this using a MSDE database?

I believe it's the sp_helplogins stored procedure:

http://msdn.microsoft.com/library/de..._adda_6lgj.asp
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Peter Larsson | last post by:
Hi there, I've recently developed a VBA-program in Excel that fetches and presents data from a distant Access database over a wireless peer-to-peer network (both computers running Win XP Pro)....
1
by: Lyle Fairfield | last post by:
I created a new MS-SQL Database, "TestODBC". I made Table1 and StoredProcedure1. I made an ODBC DSN for that MS-SQL Database. I created a new AccessXP mdb, "TestODBC". I linked to the...
18
by: WStoreyII | last post by:
I am making a asp page that will run on my computer by iis. But the problem is the database in on a web server. I can not seem to get the connection to work for it though here his the connection...
14
by: WebMatrix | last post by:
Hello, I have developed a web application that connects to 2 different database servers. The connection strings with db username + password are stored in web.config file. After a code review,...
35
by: Terry Jolly | last post by:
Web Solution Goal: Have a global database connection Why: (There will be 30+ tables, represented by 30+ classes) I only want to reference the database connection once. I put the connection...
8
by: Greg Strong | last post by:
Hello All, The short questions are 1 Do you know how to make DSN connection close in Access to Oracle 10g Express Edition? &/or 2 Do you know how to make a DSN-less pass-through query...
20
by: fniles | last post by:
I am using VS2003 and connecting to MS Access database. When using a connection pooling (every time I open the OLEDBCONNECTION I use the exact matching connection string), 1. how can I know how...
2
by: Orit | last post by:
Hello . Please find below my questions - I hope some of the ASP.NET experts of this forum will answer to those beginner's questions : My Web site should be able to work with either SQL Server...
6
Cintury
by: Cintury | last post by:
Hi all, I've developed a mobile application for windows mobile 5.0 that has been in use for a while (1 year and a couple of months). It was developed in visual studios 2005 with a back-end sql...
9
by: Gordon | last post by:
I want to add a feature to a project I'm working on where i have multiple users set up on my Postgres database with varying levels of access. At the bare minimum there will be a login user who...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.