Logan B. Lehman
Logan B. Lehman

Reputation: 5007

Check to see what applications are using an Access database

We have an access database that resides on a server. We are using an ArcGIS Add-In to interface with it (both read/write). We want to be able to check to see if it currently being used by other person through ArcGIS.

Is there any way to find out what processes are using the database at a given time in C#? I have been searching around for this answer for quite a while, and can't find the right answer.

Upvotes: 1

Views: 121

Answers (1)

crthompson
crthompson

Reputation: 15865

By examining the lock file you can find who (which machine) is accessing the database.

This KB article describes this in detail, including a sample program.

Upvotes: 1

Related Questions