How to determine who is logged on to a database by using Microsoft Jet UserRoster in Access 2000

来源:互联网 发布:js 怎么对布尔值取反 编辑:程序博客网 时间:2024/05/07 23:15

SUMMARY
By using Microsoft Visual Basic for Applications in Microsoft Access 2000, you can output a list of users who are logged into a database. The code example in this article show you how to do this.

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. The user list feature provides a way of determining who is currently connected to a Microsoft Jet database. The list can be obtained via the ADO programming interface and returns the following information for each user: • Name of the computer that the user is using.
 
• Security name, that is, the user ID.
 
• Whether or not the user is currently connected to the database. (A user's ID remains in the   lock database until the last user disconnects or until the slot is reclaimed for a new user   connection.)
 
• Whether or not the user connection was terminated normally.
 
• The user list capability can be used in conjunction with the connection control capability to   determine which users are still connected, so that they can be asked to disconnect.
The user list capability is also useful in isolating problems with database corruption that is associated with the activities of a specific user.

 ... ...

阅读全文请点击:How to determine who is logged on to a database by using Microsoft Jet UserRoster in Access 2000