UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

> Who's Logged On / Who's Connected (v1.6.3b), Access 2000    
 
   
datAdrenaline
post Oct 25 2009, 12:02 AM
Post #1

UtterAccess Editor
Posts: 15,978
From: Northern Virginia, USA



Description ...
This is an update to the utility originally posted here. The utility will log the users who are connected to an MDB/E or ACCDB/E file via the UserRoster feature of the Jet/ACE database engine implemented with the introduction of Access 2000. In addition, the utility can manage the Connection Control (aka: Passive Shutdown) property for the database file being monitored.

The file format of the utility is Access 2000. However, as indicated, All Jet/ACE formats from Access 2000 and forward can be managed as long as the correct OLE DB Provider for the Jet/ACE engine is installed.

When to use it ...
- Use to log who has/is connected to your datafile.
- If you set it to "AutoRefresh" at a given interval along with the "Update Records" option, you can find all the users that have logged on and when they logged off.
- You can use it to figure out who was connected to the datafile when the database goes "corrupt"
- I have found the app quite useful in tracking usage levels during the day and which computers are using my datafiles.
- To manage the Connection Control property (Passive Shutdown) on database files. The Connecton Control property, when enabled, prevents new connections, thus allowing your connection count to shrink passively.

How to use it ...
1. Download and unzip the file, then open the file in Access 2000 or higher.
2. The interface form opens automatically (frmConnectedUsers)
3. Browse for the .MDB/E .ACCDB/E file you want to monitor or examine.
4. "Refresh" the list of connected users as needed via the Refresh button or toggle the AutoRefresh option.

Upon selecting a file, the code will interrogate the file and extract the Computer Names and User names that are connected (aka: have the file open). Subsequent interrogations are invoked via a command button or the AutoRefresh option. The results of the interogation are stored in a local table (tblConnectedUsers)

Options available when using this utility. (Some are static between sessions and stored in the local table named tblSettings.)
- You can set an "AutoRefresh" rate which will run the analyzation at a given interval (uses Form_Timer)
- You can DELETE, MODIFY, or APPEND the records in tblConnectedUsers upon each "Refresh" attempt.
- You can either keep the connection object to the datafile static (aka: means you don't have to reconnect to the MDB after each Refresh ... this is MAY be helpful in finding the user who causes your database to go corrupt!)
- You can select to record either the Access Workgroup Username or the Windows User name.

Data that is recorded in tblConnectedUsers ...
RecordID - AutoNumber
ComputerName - The computer name that was connected to the datafile
UserName - The id of the user from the .MDW file on the ComputerName (typically Admin) (aka: Access User Name) --- OR --- The remote computer's Active Directory logged in userId (aka: Windows User Name). This is a user selectable option.
Connected - Is the User Connected (will only show No/False if you have the Update Records option set)
SuspectState - If the user has left the database in a "SuspectState" will show true, otherwise NULL

Notes and Cautions ...
- You should not have mulitple instances of this app open, unsless you change the name for each instance. For example: you should not have two instances of "WhoIsConnected.mdb" on the same machine, however, you can copy and rename the app as much as you want and open each copy, even on the same machine: "WhoIsConnected_1.mdb","WhoIsConnected_2.mdb","WhoIsConnected_3.mdb". The reason for this restriction is that the data collected is stored in a local table, plus many of the settings are stored in a local table so if multiple instances of the same mdb are created, conflicts will arise.

- Permissions or other IT related configurations may prevent the code from reading the Windows User name.

- I have not tested this utility on a CORRUPT database. The option of keeping the connection to the datafile as a "STATIC" object (controled with the "Force a New Connection" option), should maintain the "Connection" to the datafile and allow an analyzation of the UserRoster when/if the datafile goes corrupt during the monitoring process. I did not have a database go corrupt during the time I was monitoring it ... so ... well there you have it ... I hate to "Release" an app that has not been completely "Tested" ... but I just could not get a datafile to become corrupt while I was monitoring it ... go figure!

-----

Here it is ... Enjoy ... and PLEASE send me any recommendations for improvement or notifications of bugs. Also, if you "track this topic" (under the Options button) with email notification, you will be notified of updates and other postings on this thread topic regarding this utility

Edits:
Attachment updated on 2012-03-21 (datAdrenaline)
Reason for edit: Updated to v1.6.3b

Attached File(s)
Attached File  WhoIsConnected_163b.zip ( 66.66K ) Number of downloads: 741
 
Go to the top of the page
 
+

Posts in this topic
- datAdrenaline   Who's Logged On / Who's Connected (v1.6.3b)   Oct 25 2009, 12:02 AM
- - datAdrenaline   Updated to v1.6. v1.6 includes an option to enable...   Dec 6 2010, 12:11 PM
- - datAdrenaline   Updated to v1.6.1 - Removed some extraneous stuff ...   Dec 20 2010, 02:43 AM
- - ErikN   Hi, Loved this program since v 1.2 Only issue I ...   Mar 1 2012, 03:04 PM
- - datAdrenaline   Version 1.6.3 has been uploaded. v1.6.1 had 608 ...   Mar 19 2012, 02:53 PM
- - datAdrenaline   Uploaded v1.6.3a Converted code to use "late...   Mar 20 2012, 01:23 PM
- - datAdrenaline   Updated to v1.6.3b ... Fixed a DAO reference issue...   Mar 22 2012, 10:52 PM
- - RCJT   I have this setup so that both YES and NO show for...   Apr 19 2012, 12:07 PM
- - datAdrenaline   The "Timestamp" column indicates the las...   Apr 19 2012, 01:16 PM
- - bhicks11   Is it possible to capture the local computer login...   Aug 27 2012, 08:02 AM
- - bhicks11   Oops sorry, found it. Thanks very much for sharin...   Aug 27 2012, 08:35 AM
- - datAdrenaline   You are quite welcome Bonnie! I am glad you f...   Aug 27 2012, 09:07 AM
- - bhicks11   Got a question please: I have users on VDI (termi...   Aug 28 2012, 02:52 PM
- - RCJT   QUOTE (bhicks11 @ Aug 28 2012, 12:52 PM) ...   Aug 28 2012, 05:34 PM
- - datAdrenaline   RCJT, >> I haven't tried grabbing the ...   Aug 28 2012, 08:35 PM
- - datAdrenaline   bhicks11, >> Got a question please: I have ...   Aug 28 2012, 08:40 PM
- - bhicks11   I am using the lastest version and have selected t...   Aug 29 2012, 08:42 AM
- - datAdrenaline   Hello bhicks11, I figured you were using the late...   Aug 29 2012, 09:39 AM
- - bhicks11   Yup, sounds like it. Thanks for your time.   Aug 29 2012, 10:17 AM
- - mistera   This seems to be exactly what I've been search...   Aug 30 2012, 04:52 PM
- - datAdrenaline   In the btnRefreshList_Click() code ... Change thi...   Aug 30 2012, 05:14 PM
- - mistera   I did that and also updated another line in modUse...   Aug 31 2012, 09:30 AM
- - datAdrenaline   >> when I select the database I'm intere...   Aug 31 2012, 01:15 PM
- - blockhead   WIll this / should this tool work for Access 2007?...   Oct 23 2012, 08:25 PM
- - datAdrenaline   Thanks for your interest blockhead. The utility w...   Oct 25 2012, 12:08 PM


Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 25th May 2013 - 11:13 PM